r600g/llvm: fix cubemap lod/bias
authorVincent Lejeune <vljn@ovi.com>
Sat, 18 May 2013 21:42:37 +0000 (23:42 +0200)
committerVincent Lejeune <vljn@ovi.com>
Mon, 20 May 2013 18:23:19 +0000 (20:23 +0200)
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c

index 0629b89a8e52cfc8cd792a976b564f5d4207b718..3f7e79f9cd441aae145c2f2cbcaa2f3ccdbe0039 100644 (file)
@@ -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];
                }
        }