i965: Update TexturesUsed after linking the shaders
authorNeil Roberts <nroberts@igalia.com>
Wed, 7 Feb 2018 22:17:08 +0000 (23:17 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 21 Jun 2018 12:25:05 +0000 (14:25 +0200)
commit7dd96a065317b32e230aa9cb5b6994024705b8c1
treea2c2814cc3f1b372e798c3b803f8c30e5c84ac23
parent4bf8b80f54005d3cf6e435f9be7e4e948531f226
i965: Update TexturesUsed after linking the shaders

Otherwise if the shader is SPIR-V then SamplerUsed won’t have been
initialised yet so it will end up thinking no textures are used. This
was causing a crash later on if nothing causes it to regenerate
TexturesUsed before the next render.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/drivers/dri/i965/brw_link.cpp