diff options
author | Vincent Lejeune <[email protected]> | 2013-05-18 23:42:37 +0200 |
---|---|---|
committer | Vincent Lejeune <[email protected]> | 2013-05-20 20:23:19 +0200 |
commit | 9fd7ea786c0bc821253fcdd5c1b9e6309535385d (patch) | |
tree | f41a04374800115e6bcb25ef35356e26b88d3ac4 /src/gallium/drivers/radeon | |
parent | 9a95fb16053746578be856a76f3177777ef157f1 (diff) |
r600g/llvm: fix cubemap lod/bias
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 0629b89a8e5..3f7e79f9cd4 100644 --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c +++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c @@ -654,6 +654,9 @@ void radeon_llvm_emit_prepare_cube_coords( opcode == TGSI_OPCODE_TXB2 || opcode == TGSI_OPCODE_TXL2) { coords[3] = coords_arg[4]; + } else if (opcode == TGSI_OPCODE_TXB || + opcode == TGSI_OPCODE_TXL) { + coords[3] = coords_arg[3]; } } |