radeonsi: make sctx->vertex_elements always non-NULL
Bind a state with 0 vertex elements there. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8548>
This commit is contained in:
@@ -807,7 +807,7 @@ static void si_dump_descriptors(struct si_context *sctx, gl_shader_stage stage,
|
||||
}
|
||||
|
||||
if (stage == MESA_SHADER_VERTEX && sctx->vb_descriptors_buffer &&
|
||||
sctx->vb_descriptors_gpu_list && sctx->vertex_elements) {
|
||||
sctx->vb_descriptors_gpu_list) {
|
||||
assert(info); /* only CS may not have an info struct */
|
||||
struct si_descriptors desc = {};
|
||||
|
||||
|
Reference in New Issue
Block a user