turnip: Use hw enum when emitting A6XX_RB_STENCIL_CONTROL
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 22 May 2020 20:56:13 +0000 (13:56 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Tue, 26 May 2020 19:46:18 +0000 (12:46 -0700)
commitfff17707ea959f8fd6098e3a154a8574f4912a85
tree5f21d7a604c568e447f3fe930811757180f2479f
parent6aa3004d6049afdbbe85b9f807f5f9f840cb05c9
turnip: Use hw enum when emitting A6XX_RB_STENCIL_CONTROL

We're hard-coding this value, so let's use the hw enum and avoid a
warning.

src/freedreno/vulkan/tu_clear_blit.c:2091:19: warning: implicit
conversion from enumeration type 'enum VkStencilOp' to different
enumeration type 'enum adreno_stencil_op' [-Wenum-conversion]

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5174>
src/freedreno/vulkan/tu_clear_blit.c