diff options
author | Luca Barbieri <[email protected]> | 2010-09-05 22:00:26 +0200 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-09-05 23:41:33 +0200 |
commit | 357a7e90dfab9ea0ea32936fd4a5f973a5caadc8 (patch) | |
tree | f55f174c6e7bf739fac5a2b9c5618ba0c3954134 /src/gallium/drivers/nvfx/nvfx_vertprog.c | |
parent | d8bba2ef69371a78eaa981846924e241a05b85b6 (diff) |
nvfx: support nv30 simulation on nv40
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_vertprog.c')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_vertprog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_vertprog.c b/src/gallium/drivers/nvfx/nvfx_vertprog.c index 570bb452b5e..6e5b6c09363 100644 --- a/src/gallium/drivers/nvfx/nvfx_vertprog.c +++ b/src/gallium/drivers/nvfx/nvfx_vertprog.c @@ -297,8 +297,8 @@ nvfx_vp_emit(struct nvfx_vpc *vpc, struct nvfx_insn insn) if(insn.sat) { - assert(nvfx->is_nv4x); - if(nvfx->is_nv4x) + assert(nvfx->use_nv4x); + if(nvfx->use_nv4x) hw[0] |= NV40_VP_INST_SATURATE; } @@ -519,7 +519,7 @@ nvfx_vertprog_parse_instruction(struct nvfx_context* nvfx, struct nvfx_vpc *vpc, if(finst->Instruction.Saturate == TGSI_SAT_ZERO_ONE) { assert(finst->Instruction.Opcode != TGSI_OPCODE_ARL); - if(nvfx->is_nv4x) + if(nvfx->use_nv4x) sat = TRUE; else if(dst.type != NVFXSR_TEMP) dst = temp(vpc); @@ -757,7 +757,7 @@ nvfx_vertprog_parse_instruction(struct nvfx_context* nvfx, struct nvfx_vpc *vpc, return FALSE; } - if(finst->Instruction.Saturate == TGSI_SAT_ZERO_ONE && !nvfx->is_nv4x) + if(finst->Instruction.Saturate == TGSI_SAT_ZERO_ONE && !nvfx->use_nv4x) { if(!vpc->r_0_1.type) vpc->r_0_1 = constant(vpc, -1, 0, 1, 0, 0); |