summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-02-20 14:06:27 +1100
committerTimothy Arceri <[email protected]>2018-03-28 12:56:15 +1100
commitf94b6b79be8e86be6908c7e7b93380b082433277 (patch)
tree0e8cb737c99285f8b56db9aae87ee5f22692c2d3 /src/gallium
parent5c810a2c05678be2b5b28be1a1ed27f5e9754c00 (diff)
radeonsi/nir: set uses_bindless_samplers for samplers
Reviewed-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader_nir.c3
1 files changed, 3 insertions, 0 deletions
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) {