[Mesa-dev] [PATCH 2/2] mesa: Silence unused variable warning
Ian Romanick
idr at freedesktop.org
Tue Jun 28 20:36:56 UTC 2016
On 06/28/2016 01:01 PM, Gurkirpal Singh wrote:
> Signed-off-by: Gurkirpal Singh <gurkirpal204 at gmail.com>
> ---
> src/mesa/state_tracker/st_glsl_to_nir.cpp | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
> index a880564..a914c8d 100644
> --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
> @@ -172,6 +172,7 @@ st_nir_assign_uniform_locations(struct gl_program *prog,
> bool found = shader_program->UniformHash->get(val, uniform->name);
There have been some similar patches recently that do
MAYBE_UNUSED bool found = ...;
Also, the tag should be "mesa/st".
> loc = shaderidx++;
> assert(found);
> + (void) found;
> /* this ensure that nir_lower_samplers looks at the correct
> * shader_program->UniformStorage[location]:
> */
>
More information about the mesa-dev
mailing list