mesa/st: Abort the linking on driver link failure.
authorEmma Anholt <emma@anholt.net>
Mon, 6 Jun 2022 19:43:50 +0000 (12:43 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 9 Jun 2022 22:28:01 +0000 (22:28 +0000)
commitd2677cb6d78939d1a51e6d51df48bae606f10785
tree2c1f7cebfb8e37bc789fd7e31111cc63b5cc964c
parentc426e21ff14366ce82c55d0a3ba3e5635aed2e2e
mesa/st: Abort the linking on driver link failure.

If the driver said it can't do the shader, then listen to it and don't ask
it to create the shaders anyway.  Fixes a bunch of spam on i915/r300 (with
!16878) about unsupported opcodes during dEQP runs.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16895>
src/mesa/state_tracker/st_glsl_to_nir.cpp