From 68bcbfa9e4259f67139129e8173c1489905db0a9 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 20 Nov 2016 00:10:54 -0800 Subject: [PATCH] i965: Use W-typed immediate in brw_F32TO16(). Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2