This repository was archived by the owner on Jan 31, 2025. It is now read-only.
File tree 7 files changed +13
-13
lines changed
7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ AC_HEADER_STDC
77
77
AC_SYS_LARGEFILE
78
78
AC_CHECK_LIB ( [ m] , [ sin] )
79
79
AC_CHECK_FUNCS ( [ log2f] )
80
- AC_CHECK_PROGS ( [ PYTHON2 ] , [ python2 python] )
80
+ AC_CHECK_PROGS ( [ PYTHON3 ] , [ python3 python] )
81
81
82
82
LIBVA_PACKAGE_VERSION=libva_package_version
83
83
AC_SUBST ( LIBVA_PACKAGE_VERSION )
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def __parse_init(self, init):
64
64
self .param_init = []
65
65
for ini in inits :
66
66
try :
67
- val = eval (ini )
67
+ val = int ( eval (ini ) )
68
68
self .param_init .append (val )
69
69
except :
70
70
raise Exception (self .__errmsg ('non an exp: %s' % ini ))
@@ -80,7 +80,7 @@ def __parse_cond(self, cond):
80
80
self .param_op = cond [0 ]
81
81
limit = cond [1 :]
82
82
try :
83
- self .param_limit = eval (limit )
83
+ self .param_limit = int ( eval (limit ) )
84
84
except :
85
85
raise Exception (self .__errmsg ('non an exp: %s' % limit ))
86
86
else :
@@ -172,13 +172,13 @@ def do_writeblock(block, curs):
172
172
if __name__ == '__main__' :
173
173
argc = len (sys .argv )
174
174
if argc == 1 :
175
- print >> sys . stderr , 'no input file'
175
+ print ( 'no input file' )
176
176
sys .exit (0 )
177
177
178
178
try :
179
179
infile = open (sys .argv [1 ], 'r' )
180
180
except IOError :
181
- print >> sys . stderr , 'can not open %s' % sys .argv [1 ]
181
+ print ( 'can not open %s' % sys .argv [1 ])
182
182
sys .exit (1 )
183
183
184
184
if argc == 2 :
@@ -187,7 +187,7 @@ def do_writeblock(block, curs):
187
187
try :
188
188
outfile = open (sys .argv [2 ], 'w' )
189
189
except IOError :
190
- print >> sys . stderr , 'can not write to %s' % sys .argv [2 ]
190
+ print ( 'can not write to %s' % sys .argv [2 ])
191
191
sys .exit (1 )
192
192
193
193
lines = readlines (infile )
Original file line number Diff line number Diff line change @@ -189,12 +189,12 @@ if HAVE_GEN4ASM
189
189
190
190
$(INTEL_MC_GEN5_ASM ) : $(INTEL_MC_ASM ) $(INTEL_MC_INC ) $(INTEL_ILDB_ASM )
191
191
$(AM_V_GEN ) cpp -DDEV_ILK -DBOOTSTRAP -I $(srcdir ) /../ildb/ $(srcdir ) /AllAVC.asm > _mc0.$@ && \
192
- $(PYTHON2 ) $(top_srcdir ) /src/shaders/gpp.py _mc0.$@ $@ && \
192
+ $(PYTHON3 ) $(top_srcdir ) /src/shaders/gpp.py _mc0.$@ $@ && \
193
193
$(GEN4ASM ) -l $(srcdir ) /list -a -e tmp.$(INTEL_MC_EXPORT_GEN5 ) -g 5 $@ \
194
194
-o /dev/null && \
195
195
mv tmp.$(INTEL_MC_EXPORT_GEN5 ) $(INTEL_MC_EXPORT_GEN5 ) && \
196
196
cpp -DDEV_ILK -I $(srcdir ) /../ildb/ $(srcdir ) /AllAVC.asm > _mc1.$@ && \
197
- $(PYTHON2 ) $(top_srcdir ) /src/shaders/gpp.py _mc1.$@ $@ && \
197
+ $(PYTHON3 ) $(top_srcdir ) /src/shaders/gpp.py _mc1.$@ $@ && \
198
198
rm _mc0.$@ _mc1.$@
199
199
200
200
$(INTEL_MC_G4B_GEN5 ) : $(INTEL_MC_GEN5_ASM )
Original file line number Diff line number Diff line change @@ -200,15 +200,15 @@ if HAVE_GEN4ASM
200
200
$(INTEL_PP_GEN5_ASM ) : $(INTEL_PP_ASM )
201
201
.asm.g5s :
202
202
$(AM_V_GEN ) cpp -D DEV_ILK -I $(srcdir ) /Common/ -I $(srcdir ) /Core_Kernels $< > _pp0.$@ ; \
203
- $(PYTHON2 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
203
+ $(PYTHON3 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
204
204
rm _pp0.$@
205
205
.g5s.g4b.gen5 :
206
206
$(AM_V_GEN )$(GEN4ASM ) -a -o $@ -g 5 $<
207
207
208
208
$(INTEL_PP_GEN6_ASM ) : $(INTEL_PP_ASM )
209
209
.asm.g6s :
210
210
$(AM_V_GEN ) cpp -D GT -I $(srcdir ) /Common/ -I $(srcdir ) /Core_Kernels $< > _pp0.$@ ; \
211
- $(PYTHON2 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
211
+ $(PYTHON3 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
212
212
rm _pp0.$@
213
213
.g6s.g6b :
214
214
$(AM_V_GEN )$(GEN4ASM ) -a -o $@ -g 6 $<
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ if HAVE_GEN4ASM
86
86
$(INTEL_PP_GEN7_ASM ) : $(INTEL_PP_ASM ) $(INTEL_PP_G4A )
87
87
.asm.g7s :
88
88
$(AM_V_GEN ) cpp $< > _pp0.$@ ; \
89
- $(PYTHON2 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
89
+ $(PYTHON3 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
90
90
rm _pp0.$@
91
91
.g7s.g7b :
92
92
$(AM_V_GEN )$(GEN4ASM ) -a -o $@ -g 7 $<
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ if HAVE_GEN4ASM
65
65
$(INTEL_PP_GEN8_ASM ) : $(INTEL_PP_ASM ) $(INTEL_PP_G8A )
66
66
.asm.g8s :
67
67
$(AM_V_GEN ) cpp $< > _pp0.$@ ; \
68
- $(PYTHON2 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
68
+ $(PYTHON3 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
69
69
rm _pp0.$@
70
70
.g8s.g8b :
71
71
$(AM_V_GEN )$(GEN4ASM ) -a -o $@ -g 8 $<
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ if HAVE_GEN4ASM
66
66
$(INTEL_PP_GEN9_ASM ) : $(INTEL_PP_ASM ) $(INTEL_PP_G9A )
67
67
.asm.g9s :
68
68
$(AM_V_GEN ) cpp $< > _pp0.$@ ; \
69
- $(PYTHON2 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
69
+ $(PYTHON3 ) $(top_srcdir ) /src/shaders/gpp.py _pp0.$@ $@ ; \
70
70
rm _pp0.$@
71
71
.g9s.g9b :
72
72
$(AM_V_GEN )$(GEN4ASM ) -a -o $@ -g 9 $<
You can’t perform that action at this time.
0 commit comments