Mesa (4094-libunwind-not-located-used-on-macos): nir/lower_uniforms_to_ubo: set explicit_binding on uniform_0
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 14 18:19:25 UTC 2021
Module: Mesa
Branch: 4094-libunwind-not-located-used-on-macos
Commit: 652e51e1f3421369ee1d9efc30b20168fcb12e37
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=652e51e1f3421369ee1d9efc30b20168fcb12e37
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Dec 2 11:40:33 2020 -0500
nir/lower_uniforms_to_ubo: set explicit_binding on uniform_0
this variable is always bound to buffer index 0, so the binding info
here is actually useful
Reviewed-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7935>
---
src/compiler/nir/nir_lower_uniforms_to_ubo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/compiler/nir/nir_lower_uniforms_to_ubo.c b/src/compiler/nir/nir_lower_uniforms_to_ubo.c
index 80382c87880..06ddb0a9a9d 100644
--- a/src/compiler/nir/nir_lower_uniforms_to_ubo.c
+++ b/src/compiler/nir/nir_lower_uniforms_to_ubo.c
@@ -144,6 +144,7 @@ nir_lower_uniforms_to_ubo(nir_shader *shader, int multiplier)
nir_variable *ubo = nir_variable_create(shader, nir_var_mem_ubo, type,
"uniform_0");
ubo->data.binding = 0;
+ ubo->data.explicit_binding = 1;
struct glsl_struct_field field = {
.type = type,
More information about the mesa-commit
mailing list