i965: Use W-typed immediate in brw_F32TO16().
authorMatt Turner <mattst88@gmail.com>
Sun, 20 Nov 2016 08:10:54 +0000 (00:10 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 20 Jan 2017 19:40:52 +0000 (11:40 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c

index a784b78cb55501f56f187a2572394c9e091f3f81..67094670aa106c6081280c5d411251c7056eceb1 100644 (file)
@@ -1211,7 +1211,7 @@ brw_F32TO16(struct brw_codegen *p, struct brw_reg dst, struct brw_reg src)
 
    if (needs_zero_fill) {
       brw_inst_set_no_dd_clear(devinfo, inst, true);
-      inst = brw_MOV(p, suboffset(dst, 1), brw_imm_ud(0u));
+      inst = brw_MOV(p, suboffset(dst, 1), brw_imm_w(0));
       brw_inst_set_no_dd_check(devinfo, inst, true);
    }