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

Author: Dave Airlie <[email protected]>
Date:   Sun Dec 16 10:16:09 2012 +0000

r600g: fixup offset types for printing

This allows the debug code to at least show the sign properly.

Signed-off-by: Dave Airlie <[email protected]>

---

 src/gallium/drivers/r600/r600_asm.h    |    6 +++---
 src/gallium/drivers/r600/r600_shader.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_asm.h 
b/src/gallium/drivers/r600/r600_asm.h
index f3b036d..5727a7c 100644
--- a/src/gallium/drivers/r600/r600_asm.h
+++ b/src/gallium/drivers/r600/r600_asm.h
@@ -77,9 +77,9 @@ struct r600_bytecode_tex {
        unsigned                        coord_type_y;
        unsigned                        coord_type_z;
        unsigned                        coord_type_w;
-       unsigned                        offset_x;
-       unsigned                        offset_y;
-       unsigned                        offset_z;
+       int                             offset_x;
+       int                             offset_y;
+       int                             offset_z;
        unsigned                        sampler_id;
        unsigned                        src_sel_x;
        unsigned                        src_sel_y;
diff --git a/src/gallium/drivers/r600/r600_shader.c 
b/src/gallium/drivers/r600/r600_shader.c
index f007204..fbbd0fb 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -3828,7 +3828,7 @@ static int tgsi_tex(struct r600_shader_ctx *ctx)
                                             read_compressed_msaa;
        boolean src_loaded = FALSE;
        unsigned sampler_src_reg = inst->Instruction.Opcode == 
TGSI_OPCODE_TXQ_LZ ? 0 : 1;
-       uint8_t offset_x = 0, offset_y = 0, offset_z = 0;
+       int8_t offset_x = 0, offset_y = 0, offset_z = 0;
        boolean has_txq_cube_array_z = false;
 
        if (inst->Instruction.Opcode == TGSI_OPCODE_TXQ &&

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

Reply via email to