i965 new VS: Fix src_reg(uint32_t) constructor.
authorPaul Berry <stereotype441@gmail.com>
Sat, 24 Sep 2011 04:35:18 +0000 (21:35 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 28 Sep 2011 18:38:04 +0000 (11:38 -0700)
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.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.h

index b6864c3..5f44268 100644 (file)
@@ -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)