From: Eric Anholt Date: Fri, 3 Dec 2010 23:33:13 +0000 (-0800) Subject: i965: Make the sampler's implied move on gen6 be a raw move. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=237aa33c67039f6660cac19f061057250b8b3697;p=mesa.git i965: Make the sampler's implied move on gen6 be a raw move. We were accidentally doing a float-to-uint conversion. --- diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 8782f726398..ef634e00ba4 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -1952,7 +1952,7 @@ void brw_SAMPLE(struct brw_compile *p, brw_push_insn_state(p); brw_set_mask_control( p, BRW_MASK_DISABLE ); brw_set_compression_control(p, BRW_COMPRESSION_NONE); - brw_MOV(p, brw_message_reg(msg_reg_nr), src0); + brw_MOV(p, retype(brw_message_reg(msg_reg_nr), src0.type), src0); brw_pop_insn_state(p); } src0 = brw_message_reg(msg_reg_nr);