r600/sfn: Fix warning for mixed use of enum and integer

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20451>
This commit is contained in:
Gert Wollny
2022-12-22 13:54:36 +01:00
committed by Marge Bot
parent 2df023a1f1
commit c69f2fe5fd
+1 -1
View File
@@ -862,7 +862,7 @@ r600_shader_from_nir(struct r600_context *rctx,
(sh->info.stage == MESA_SHADER_VERTEX && key->vs.as_ls)) {
auto prim_type = sh->info.stage == MESA_SHADER_TESS_EVAL
? u_tess_prim_from_shader(sh->info.tess._primitive_mode)
: key->tcs.prim_mode;
: (pipe_prim_type)key->tcs.prim_mode;
NIR_PASS_V(sh, r600_lower_tess_io, static_cast<pipe_prim_type>(prim_type));
}