Commit 2271a187 authored by Iago Toral's avatar Iago Toral

u_vbuf: don't try to delete NULL driver CSO

Since 18a8c3f7 we don't create a driver CSO if there are any
incompatible elements, so only ask backends to delete it if it exists.

Fixes multiple CTS crashes in V3D.

Fixes: 18a8c3f7 ("u_vbuf: Only create driver CSO if no incompatible elements")
Reviewed-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Christian Gmeiner's avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent d0d28c78
Pipeline #93465 passed with stages
in 15 minutes and 27 seconds
......@@ -849,7 +849,8 @@ static void u_vbuf_delete_vertex_elements(struct u_vbuf *mgr, void *cso)
struct pipe_context *pipe = mgr->pipe;
struct u_vbuf_elements *ve = cso;
pipe->delete_vertex_elements_state(pipe, ve->driver_cso);
if (ve->driver_cso)
pipe->delete_vertex_elements_state(pipe, ve->driver_cso);
FREE(ve);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment