[Mesa-dev] [PATCH 4/7] st/glsl_to_nir: set driver location for bindless images and samplers
Timothy Arceri
tarceri at itsqueeze.com
Tue Feb 20 03:42:30 UTC 2018
---
src/mesa/state_tracker/st_glsl_to_nir.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
index 760aee1af6..47f369a889 100644
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
@@ -241,7 +241,8 @@ st_nir_assign_uniform_locations(struct gl_program *prog,
uniform->interface_type != NULL)
continue;
- if (uniform->type->is_sampler() || uniform->type->is_image()) {
+ if (!uniform->data.bindless &&
+ (uniform->type->is_sampler() || uniform->type->is_image())) {
if (uniform->type->is_sampler())
loc = shaderidx++;
else
--
2.14.3
More information about the mesa-dev
mailing list