v3d: assert if v3d_compile returns NULL
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 24 May 2023 08:43:55 +0000 (10:43 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 24 May 2023 14:19:12 +0000 (14:19 +0000)
commitb6d874ade22dc029522500d51993601b8e6183c7
tree039fca0cef2415bd74f469e0c5a357a5b70b5c2d
parent470b8567a52f4581510e19643e8c26d8b7458bc3
v3d: assert if v3d_compile returns NULL

Ideally we would like to trigger a compilation error like we do on
v3dv (VK_ERROR_UNKNOWN). But with v3d we can't really do that, as this
could happen on a draw call. Let's at least assert so debug builds
stops at this point.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23203>
src/gallium/drivers/v3d/v3d_program.c