From: Iago Toral Quiroga Date: Thu, 15 Sep 2016 09:30:32 +0000 (+0200) Subject: i965/vec4: teach cmod propagation about different execution sizes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5356d52f31b8285c97f2c920e28cf4eb2a8caa58;p=mesa.git i965/vec4: teach cmod propagation about different execution sizes We can't propagate the conditional modifier from one instruction to another of a different execution size / group, since that would change the channels affected by the conditional. Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_cmod_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_cmod_propagation.cpp index c531fba0312..4454cdbfc94 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_cmod_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_cmod_propagation.cpp @@ -76,7 +76,9 @@ opt_cmod_propagation_local(bblock_t *block) scan_inst->dst.writemask != WRITEMASK_XYZW) || (scan_inst->dst.writemask == WRITEMASK_XYZW && inst->src[0].swizzle != BRW_SWIZZLE_XYZW) || - (inst->dst.writemask & ~scan_inst->dst.writemask) != 0) { + (inst->dst.writemask & ~scan_inst->dst.writemask) != 0 || + scan_inst->exec_size != inst->exec_size || + scan_inst->group != inst->group) { break; }