[Mesa-dev] [PATCH 14/17] i965/vec4: Allow propagation of instructions with saturate flag to sel

Matt Turner mattst88 at gmail.com
Tue Aug 19 19:32:44 PDT 2014


On Mon, Aug 18, 2014 at 5:17 AM, Abdiel Janulgue
<abdiel.janulgue at linux.intel.com> wrote:
> +   if (entry->saturatemask & (1 << arg)) {
> +      switch(inst->opcode) {
> +      case BRW_OPCODE_SEL:
> +         if (inst->src[1].file != IMM ||
> +             inst->src[1].fixed_hw_reg.dw1.f < 0.0 ||
> +             inst->src[1].fixed_hw_reg.dw1.f > 1.0) {
> +            return false;

Same comment about checking conditional_mod. Then,

Reviewed-by: Matt Turner <mattst88 at gmail.com>


More information about the mesa-dev mailing list