OSDN Git Service

nir/spirv: s/uint32_t/SpvOp/ in various functions
authorBrian Paul <brianp@vmware.com>
Fri, 30 Mar 2018 17:10:11 +0000 (11:10 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Mar 2018 20:33:33 +0000 (14:33 -0600)
commitf3164c2ed96a119c73f16c4703bf5ad9feff1416
tree63cad69d89138978278dc3f682dc43fd0e030419
parentcb619a3c9a49d27f60a2a616f719af17bc9f54d2
nir/spirv: s/uint32_t/SpvOp/ in various functions

The MSVC compiler warns when the function parameter types don't
exactly match with respect to enum vs. uint32_t.  Use SpvOp everywhere.

Alternately, uint32_t could be used everywhere.  There doesn't seem
to be an advantage to one over the other.

Reviewed-by: Neil Roberts <nroberts@igalia.com>
src/compiler/spirv/vtn_amd.c
src/compiler/spirv/vtn_glsl450.c
src/compiler/spirv/vtn_private.h