u_vbuf: don't try to delete NULL driver CSO
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 2 Jan 2020 09:10:57 +0000 (10:10 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 3 Jan 2020 06:58:35 +0000 (07:58 +0100)
commit2271a187c231f1ee2d10d0d777aa53605ed8f59a
treebc1d9471129fff365d3824d7e4dbf2cc21126bb6
parentd0d28c783d41960a556441593d80925dc0e9aaf0
u_vbuf: don't try to delete NULL driver CSO

Since 18a8c3f7f11 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: 18a8c3f7f11 ("u_vbuf: Only create driver CSO if no incompatible elements")
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_vbuf.c