path: root/src/compiler/nir/nir_opt_load_store_vectorize.c
diff options
authorTimothy Arceri <>2020-10-01 20:23:28 +1000
committerEric Engestrom <>2020-10-14 19:29:27 +0200
commit07ba04a35add2662910369b16eac1280f22e6969 (patch)
treeb0543de50fc5513376148f99ebe79f4eb42370cf /src/compiler/nir/nir_opt_load_store_vectorize.c
parent55eed08808c0ec5a7b984310f4d0bde40c2481b5 (diff)
glsl: don't duplicate state vars as uniforms in the NIR linker
The linker was adding all state vars as uniforms, doubling the storage size for shaders using only builtin uniforms, which increased CPU overhead for constant buffer uploads. When this code was originally ported from the GLSL IR linker we forgot to exclude builtins because the check was not done in the add_uniform_to_shader class but rather a check was done when passing variables to this class for processing. Fixes: 664e4a610dc8 ("glsl/nir: Fill in the Parameters in NIR linker") Reviewed-by: Alejandro Piñeiro <> Tested-by: Marek Olšák <> Part-of: <> (cherry picked from commit 038fcbcaed31b97f8f477f2496f8cf0a809b1892)
Diffstat (limited to 'src/compiler/nir/nir_opt_load_store_vectorize.c')
0 files changed, 0 insertions, 0 deletions