Skip to content
Snippets Groups Projects
Commit 4f33f96c authored by Caio Oliveira's avatar Caio Oliveira
Browse files

glsl/nir: Avoid overflow when setting max_uniform_location


Don't use the UNMAPPED_UNIFORM_LOC (-1) to set the unsigned
max_uniform_location.  Those unmapped uniforms don't have to be
accounted at this point.

Fixes: 7a9e5cdf ("nir/linker: Add gl_nir_link_uniforms()")
Reviewed-by: default avatarAlejandro Piñeiro <apinheiro@igalia.com>
parent 30471999
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment