Module: Mesa
Branch: master
Commit: 9fd7ea786c0bc821253fcdd5c1b9e6309535385d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=9fd7ea786c0bc821253fcdd5c1b9e6309535385d

Author: Vincent Lejeune <[email protected]>
Date:   Sat May 18 23:42:37 2013 +0200

r600g/llvm: fix cubemap lod/bias

---

 .../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 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];
                }
        }
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to