summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_program.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-07-07 16:58:14 -0700
committerKenneth Graunke <[email protected]>2019-07-11 00:12:00 -0700
commitcb82d534a0c3ea65c0f24586fcb877d912eec130 (patch)
treeec214ac62884dd0f727034ec6bfb2433ed13b43e /src/gallium/drivers/iris/iris_program.c
parent38f9954208bcfc337af9283c12528e466cf7e50b (diff)
iris: Drop comment about var->data.binding not being set.
I refactored the sampler lowering passes a long time ago to ensure that gl_nir_lower_samplers_as_deref is run and var->data.binding is set.
Diffstat (limited to 'src/gallium/drivers/iris/iris_program.c')
-rw-r--r--src/gallium/drivers/iris/iris_program.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c
index 642d9325488..2fe842e9807 100644
--- a/src/gallium/drivers/iris/iris_program.c
+++ b/src/gallium/drivers/iris/iris_program.c
@@ -364,10 +364,6 @@ iris_setup_uniforms(const struct brw_compiler *compiler,
nir_deref_instr *deref = nir_src_as_deref(intrin->src[0]);
nir_variable *var = nir_deref_instr_get_variable(deref);
- /* XXX: var->data.binding is not set properly. We need to run
- * some form of gl_nir_lower_samplers_as_deref() to get it.
- * This breaks tests which use more than one image.
- */
if (img_idx[var->data.binding] == -1) {
/* GL only allows arrays of arrays of images. */
assert(glsl_type_is_image(glsl_without_array(var->type)));