st/glsl_to_nir: set driver location for bindless images and samplers

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Timothy Arceri 2018-02-20 11:06:27 +11:00
parent f94b6b79be
commit 5411b98d52

View file

@ -271,7 +271,8 @@ st_nir_assign_uniform_locations(struct gl_context *ctx,
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