diff options
author | Marcin Slusarz <[email protected]> | 2011-10-10 23:31:04 +0200 |
---|---|---|
committer | Marcin Slusarz <[email protected]> | 2011-10-11 19:35:04 +0200 |
commit | 7f3de70c3c8e9ec9dfc34ddd3a08c4b73c007541 (patch) | |
tree | d23cab3199578400968779e361878595978586b5 /src/gallium | |
parent | 3f5e938a9ded42ae8dc9ae2486e8d5c8b64cfe07 (diff) |
nv50: don't crash on TXD opcode
It doesn't implement full TXD, but at least it does not crash.
Fixes arb_shader_texture_lod-texgrad and glsl-fs-shadow2DGradARB-*
piglit tests.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_tgsi_to_nc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c index 4b11ae1e626..717a9029be6 100644 --- a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c +++ b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c @@ -847,6 +847,7 @@ translate_opcode(uint opcode) case TGSI_OPCODE_TXP: return NV_OP_TEX; case TGSI_OPCODE_TXB: return NV_OP_TXB; case TGSI_OPCODE_TXL: return NV_OP_TXL; + case TGSI_OPCODE_TXD: return NV_OP_TEX; case TGSI_OPCODE_XOR: return NV_OP_XOR; default: return NV_OP_NOP; @@ -1960,6 +1961,7 @@ bld_instruction(struct bld_context *bld, case TGSI_OPCODE_TXB: case TGSI_OPCODE_TXL: case TGSI_OPCODE_TXP: + case TGSI_OPCODE_TXD: // fake bld_tex(bld, dst0, insn); break; case TGSI_OPCODE_XPD: |