nir/lower_cl_images: set binding also for samplers
Fixes https://github.com/darktable-org/darktable/issues/16717 on radeonsi.
Fixes: 31ed24cec7 ("nir/lower_images: extract from clover")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29230>
This commit is contained in:
@@ -161,6 +161,7 @@ nir_lower_cl_images(nir_shader *shader, bool lower_image_derefs, bool lower_samp
|
||||
assert(var->data.location > last_loc);
|
||||
last_loc = var->data.location;
|
||||
var->data.driver_location = num_samplers++;
|
||||
var->data.binding = var->data.driver_location;
|
||||
} else {
|
||||
/* CL shouldn't have any sampled images */
|
||||
assert(!glsl_type_is_sampler(var->type));
|
||||
|
||||
Reference in New Issue
Block a user