mesa/shader_query: Fix LOCATION_INDEX query (ARB_gl_spirv)
authorAntia Puentes <apuentes@igalia.com>
Fri, 14 Sep 2018 06:55:24 +0000 (08:55 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 12 Jul 2019 21:42:41 +0000 (23:42 +0200)
commit161de77e0feeab365f1a53464cb60eb3608ebe2e
treee07cbdaffa063642bed038566e8874a7ec1d1f32
parent8818553f1809d25c08ad44826313352e54453717
mesa/shader_query: Fix LOCATION_INDEX query (ARB_gl_spirv)

When querying GL_LOCATION_INDEX using glGetProgramResourceiv
we already know the index of the resource, we do not need to find
it using the name, which is convenient for shaders coming from
SPIR-V binaries where names are optional.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/mesa/main/shader_query.cpp