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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user