[Mesa-dev] [PATCH 4/4] r600g/llvm: fix cubemap lod/bias
Vincent Lejeune
vljn at ovi.com
Mon May 20 07:49:22 PDT 2013
---
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
index 0629b89..3f7e79f 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];
}
}
--
1.8.2.1
More information about the mesa-dev
mailing list