glsl: just use NIR to lower outputs when driver can't read outputs
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 30 Oct 2019 00:24:37 +0000 (11:24 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 1 Nov 2019 00:33:33 +0000 (11:33 +1100)
commit0e186c18ba1157ae9dc6c1d6256925ceeab00344
tree394afcdf37585531baa63e81deab26731cc17cb3
parent8fa13db25163d36460d779dd4ea0ede19227cdbf
glsl: just use NIR to lower outputs when driver can't read outputs

This will allow us to stop lowering gl_FragData in GLSL IR for NIR
drivers which means we won't need the special GLSL IR type
handling for building the resource list in a NIR based linker.

i965 has been doing this since b828f7a27b2b.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp