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_scan.c | |
parent | 9413d1c0fec74d2a7bd8f09049c2aaef8a232a9d (diff) |
tgsi: use enum tgsi_opcode
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_scan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 4a2b3540639..18488d776e9 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -55,7 +55,7 @@ is_memory_file(unsigned file) static bool -is_mem_query_inst(unsigned opcode) +is_mem_query_inst(enum tgsi_opcode opcode) { return opcode == TGSI_OPCODE_RESQ || opcode == TGSI_OPCODE_TXQ || @@ -68,7 +68,7 @@ is_mem_query_inst(unsigned opcode) * texture map? */ static bool -is_texture_inst(unsigned opcode) +is_texture_inst(enum tgsi_opcode opcode) { return (!is_mem_query_inst(opcode) && tgsi_get_opcode_info(opcode)->is_tex); @@ -80,7 +80,7 @@ is_texture_inst(unsigned opcode) * implicitly? */ static bool -computes_derivative(unsigned opcode) +computes_derivative(enum tgsi_opcode opcode) { if (tgsi_get_opcode_info(opcode)->is_tex) { return opcode != TGSI_OPCODE_TG4 && |