dxil: Fixes warning about comparing different enum value and enum literal
authorYonggang Luo <luoyonggang@gmail.com>
Sat, 7 May 2022 01:31:20 +0000 (09:31 +0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 15 Jun 2022 11:38:24 +0000 (11:38 +0000)
commitbeaaa84cea85e3accdc51a5b31f2a7b9a16671a3
tree5bf3e941c6cdef502fe6967dfa5a8948bbf32565
parent0d0283f698b4fb7bceedc97a7e525956ed962589
dxil: Fixes warning about comparing different enum value and enum literal

warnings:
../../src/microsoft/spirv_to_dxil/spirv_to_dxil.c: In function 'spirv_to_dxil':
../../src/microsoft/spirv_to_dxil/spirv_to_dxil.c:101:14: warning: comparison between 'dxil_spirv_shader_stage' and 'enum <anonymous>' [-Wenum-compare]
  101 |    if (stage == MESA_SHADER_NONE || stage == MESA_SHADER_KERNEL)
      |              ^~
../../src/microsoft/spirv_to_dxil/spirv_to_dxil.c:101:43: warning: comparison between 'dxil_spirv_shader_stage' and 'enum <anonymous>' [-Wenum-compare]
  101 |    if (stage == MESA_SHADER_NONE || stage == MESA_SHADER_KERNEL)
      |                                           ^~

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16671>
src/microsoft/spirv_to_dxil/spirv_to_dxil.c