[Mesa-dev] [PATCH 02/18] i965: Use W-typed immediate in brw_F32TO16().

Matt Turner mattst88 at gmail.com
Tue Nov 22 19:59:36 UTC 2016


---
 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 cfb3fa0..3146271 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -1239,7 +1239,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.7.3



More information about the mesa-dev mailing list