radeonsi/nir: set uses_bindless_samplers for samplers
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 20 Feb 2018 03:06:27 +0000 (14:06 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 28 Mar 2018 01:56:15 +0000 (12:56 +1100)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c

index 6444a8b5ddefb8d7232605cdd7146a7c4d05a5c8..2245b39fe0a41fc20412781403175beb4ced4bce 100644 (file)
@@ -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) {