From f94b6b79be8e86be6908c7e7b93380b082433277 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 20 Feb 2018 14:06:27 +1100 Subject: [PATCH] radeonsi/nir: set uses_bindless_samplers for samplers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader_nir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 6444a8b5dde..2245b39fe0a 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -56,6 +56,9 @@ static void scan_instruction(struct tgsi_shader_info *info, if (!tex->texture) { info->samplers_declared |= u_bit_consecutive(tex->sampler_index, 1); + } else { + if (tex->texture->var->data.bindless) + info->uses_bindless_samplers = true; } switch (tex->op) { -- 2.30.2