[Mesa-dev] [PATCH 3/7] radeonsi/nir: set uses_bindless_samplers for samplers

Timothy Arceri tarceri at itsqueeze.com
Tue Feb 20 03:42:29 UTC 2018


---
 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 974068b88f..7a5acd3ff1 100644
--- a/src/gallium/drivers/radeonsi/si_shader_nir.c
+++ b/src/gallium/drivers/radeonsi/si_shader_nir.c
@@ -62,6 +62,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.14.3



More information about the mesa-dev mailing list