From: Matt Turner Date: Sun, 20 Nov 2016 08:10:54 +0000 (-0800) Subject: i965: Use W-typed immediate in brw_F32TO16(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68bcbfa9e4259f67139129e8173c1489905db0a9;p=mesa.git i965: Use W-typed immediate in brw_F32TO16(). Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index a784b78cb55..67094670aa1 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -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); }