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
1 changed files with 2 additions and 1 deletions

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