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): |
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 |
|
|