[Mesa-dev] [PATCH 5/7] i965 new VS: Fix src_reg(uint32_t) constructor.

Paul Berry stereotype441 at gmail.com
Sun Sep 25 09:22:02 PDT 2011


This constructor was storing its argument in the wrong field of the
"imm" enum, resulting in it being converted to a float when it should
have remained an unsigned integer.  This was preventing clipping from
working properly on pre-GEN6.
---
 src/mesa/drivers/dri/i965/brw_vec4.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h b/src/mesa/drivers/dri/i965/brw_vec4.h
index b6864c3..5f44268 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.h
+++ b/src/mesa/drivers/dri/i965/brw_vec4.h
@@ -148,7 +148,7 @@ public:
 
       this->file = IMM;
       this->type = BRW_REGISTER_TYPE_UD;
-      this->imm.f = u;
+      this->imm.u = u;
    }
 
    src_reg(int32_t i)
-- 
1.7.6.2



More information about the mesa-dev mailing list