diff options
author | Brian Paul <[email protected]> | 2018-03-05 10:16:01 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-03-23 09:03:26 -0600 |
commit | 22a3190c85621a55e8498499e1006a9dc242ac6f (patch) | |
tree | ec478fa3045c9f6a9b8fd8b87edeb524de755c8f /src/gallium/auxiliary/tgsi/tgsi_lowering.c | |
parent | 9413d1c0fec74d2a7bd8f09049c2aaef8a232a9d (diff) |
tgsi: use enum tgsi_opcode
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_lowering.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_lowering.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_lowering.c b/src/gallium/auxiliary/tgsi/tgsi_lowering.c index bfc3a6bfe36..47aa3df61d5 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_lowering.c +++ b/src/gallium/auxiliary/tgsi/tgsi_lowering.c @@ -823,7 +823,7 @@ transform_dotp(struct tgsi_transform_context *tctx, struct tgsi_full_src_register *src0 = &inst->Src[0]; struct tgsi_full_src_register *src1 = &inst->Src[1]; struct tgsi_full_instruction new_inst; - unsigned opcode = inst->Instruction.Opcode; + enum tgsi_opcode opcode = inst->Instruction.Opcode; /* NOTE: any potential last instruction must replicate src on all * components (since it could be re-written to write to final dst) @@ -908,7 +908,7 @@ transform_flr_ceil(struct tgsi_transform_context *tctx, struct tgsi_full_dst_register *dst = &inst->Dst[0]; struct tgsi_full_src_register *src0 = &inst->Src[0]; struct tgsi_full_instruction new_inst; - unsigned opcode = inst->Instruction.Opcode; + enum tgsi_opcode opcode = inst->Instruction.Opcode; if (dst->Register.WriteMask & TGSI_WRITEMASK_XYZW) { /* FLR: FRC tmpA, src CEIL: FRC tmpA, -src */ @@ -1038,7 +1038,7 @@ transform_samp(struct tgsi_transform_context *tctx, /* mask is clamped coords, pmask is all coords (for projection): */ unsigned mask = 0, pmask = 0, smask; unsigned tex = inst->Texture.Texture; - unsigned opcode = inst->Instruction.Opcode; + enum tgsi_opcode opcode = inst->Instruction.Opcode; bool lower_txp = (opcode == TGSI_OPCODE_TXP) && (ctx->config->lower_TXP & (1 << tex)); |