[Mesa-dev] [PATCH 1/2] prog_optimize: get_src_arg_mask() respect writemask for OPCODE_CMP

Brian Paul brianp at vmware.com
Tue Apr 5 07:59:40 PDT 2011


On 04/05/2011 12:20 AM, Tom Stellard wrote:
> ---
>   src/mesa/program/prog_optimize.c |    1 +
>   1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/program/prog_optimize.c b/src/mesa/program/prog_optimize.c
> index 164297a..f62d890 100644
> --- a/src/mesa/program/prog_optimize.c
> +++ b/src/mesa/program/prog_optimize.c
> @@ -74,6 +74,7 @@ get_src_arg_mask(const struct prog_instruction *inst,
>         case OPCODE_MAD:
>         case OPCODE_MUL:
>         case OPCODE_SUB:
> +      case OPCODE_CMP:
>            channel_mask = inst->DstReg.WriteMask&  dst_mask;
>            break;
>         case OPCODE_RCP:


Looks OK to me.  But it seems there's probably other opcodes missing 
from this group, like OPCODE_LRP/SGE/SLT etc.

-Brian


More information about the mesa-dev mailing list