From: Marek Olšák Date: Wed, 20 Feb 2019 22:21:32 +0000 (-0500) Subject: tgsi: don't set tgsi_info::uses_bindless_images for constbufs and hw atomics X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b326a15edab34d09e7b328dd8726137960ae12a5;p=mesa.git tgsi: don't set tgsi_info::uses_bindless_images for constbufs and hw atomics This might have decreased performance for radeonsi/tgsi, because most most shaders claimed they used bindless. Cc: 18.3 19.0 Reviewed-by: Ilia Mirkin --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h index 64f2598a259..09eac4da95a 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h @@ -220,7 +220,9 @@ tgsi_is_bindless_image_file(unsigned file) { return file != TGSI_FILE_IMAGE && file != TGSI_FILE_MEMORY && - file != TGSI_FILE_BUFFER; + file != TGSI_FILE_BUFFER && + file != TGSI_FILE_CONSTBUF && + file != TGSI_FILE_HW_ATOMIC; } #ifdef __cplusplus