/[gzz]/gzz/gfx/libpaper/texcomb_NV1X.py
ViewVC logotype

Diff of /gzz/gfx/libpaper/texcomb_NV1X.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by jvk, Mon Sep 9 12:00:05 2002 UTC revision 1.10 by tjl, Tue Sep 10 18:53:19 2002 UTC
# Line 1  Line 1 
1  # Register combiners for NV1x architecture, where there  # Register combiners for NV1x architecture, where there
2  # are only two of them.  # are only two of them.
3    
4    from gfx.libutil import nvcode
5            
6  class TransparentCombinerPass:  class TransparentCombinerPass:
7      def setupCode(self, texinputs, colors, rnd, trans = 0):      def setupCode(self, texinputs, colors, rnd, trans = 0):
# Line 172  class TransparentCombinerPass: Line 174  class TransparentCombinerPass:
174                            
175                            
176          c = (constantcode + c) % locals()          c = (constantcode + c) % locals()
177          c = (c.replace("CI0", "CombinerInputNV COMBINER0_NV").          c = nvcode.combinercode(c)
                 replace("CI1", "CombinerInputNV COMBINER1_NV").  
                 replace("CO0", "CombinerOutputNV COMBINER0_NV").  
                 replace("CO1", "CombinerOutputNV COMBINER1_NV").  
                 replace("FCI", "FinalCombinerInputNV").  
                 replace(" A ", " VARIABLE_A_NV ").  
                 replace(" B ", " VARIABLE_B_NV ").  
                 replace(" C ", " VARIABLE_C_NV ").  
                 replace(" D ", " VARIABLE_D_NV ").  
                 replace(" E ", " VARIABLE_E_NV ").  
                 replace(" F ", " VARIABLE_F_NV ").  
                 replace(" G ", " VARIABLE_G_NV ")  
                 )  
178          # print "c: ",c          # print "c: ",c
179          return c          return c
180    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26