radeonsi: don't use rasterizer_discard to validate draws, only check ps_shader
Let's just say that PS can never be NULL here. Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8653>
This commit is contained in:
@@ -1665,8 +1665,7 @@ static void si_draw_vbo(struct pipe_context *ctx,
|
||||
|
||||
struct si_shader_selector *vs = sctx->vs_shader.cso;
|
||||
if (unlikely(!vs || sctx->num_vertex_elements < vs->num_vs_inputs ||
|
||||
(!sctx->ps_shader.cso && !rs->rasterizer_discard) ||
|
||||
(HAS_TESS != (prim == PIPE_PRIM_PATCHES)))) {
|
||||
!sctx->ps_shader.cso || (HAS_TESS != (prim == PIPE_PRIM_PATCHES)))) {
|
||||
assert(0);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user