Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 473408 | Differences between
and this patch

Collapse All | Expand All

(-)libva-intel-driver-1.3.2/work/libva-intel-driver-1.3.2-abi_x86_64.amd64/src/shaders/gpp.py (-3 / +4 lines)
Lines 62-70 Link Here
62
	def __parse_init(self, init):
62
	def __parse_init(self, init):
63
		inits = init.split(',')
63
		inits = init.split(',')
64
		self.param_init = []
64
		self.param_init = []
65
65
		for ini in inits:
66
		for ini in inits:
66
			try:
67
			try:
67
				val = eval(ini)
68
				val = eval(ini.replace("/", "//"))
68
				self.param_init.append(val)
69
				self.param_init.append(val)
69
			except:
70
			except:
70
				raise Exception(self.__errmsg('non an exp: %s'%ini))
71
				raise Exception(self.__errmsg('non an exp: %s'%ini))
Lines 80-86 Link Here
80
				self.param_op = cond[0]
81
				self.param_op = cond[0]
81
				limit = cond[1:]
82
				limit = cond[1:]
82
			try:
83
			try:
83
				self.param_limit = eval(limit)
84
				self.param_limit = eval(limit.replace("/", "//"))
84
			except:
85
			except:
85
				raise Exception(self.__errmsg('non an exp: %s'%limit))
86
				raise Exception(self.__errmsg('non an exp: %s'%limit))
86
		else:
87
		else:
Lines 93-99 Link Here
93
		self.param_step = []
94
		self.param_step = []
94
		for st in steps:
95
		for st in steps:
95
			try:
96
			try:
96
				val = eval(st)
97
				val = eval(st.replace("/", "//"))
97
				self.param_step.append(val)
98
				self.param_step.append(val)
98
			except:
99
			except:
99
				raise Exception(self.__errmsg('non an exp: %s'%st))
100
				raise Exception(self.__errmsg('non an exp: %s'%st))

Return to bug 473408