From 2c3a7d584095bacb129a3fbbd6ccd5eac34d1451 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 16 May 2017 12:25:28 +0200 Subject: radeonsi: track use of bindless samplers/images from tgsi_shader_info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds some new helper functions to know if the current draw call (or dispatch compute) is using bindless samplers/images, based on TGSI analysis. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/drivers/radeonsi/si_pipe.h') diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index 64be428943c..9ebc9220742 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -428,6 +428,10 @@ struct si_context { /* Resident bindless handles */ struct util_dynarray resident_tex_handles; struct util_dynarray resident_img_handles; + + /* Bindless state */ + bool uses_bindless_samplers; + bool uses_bindless_images; }; /* cik_sdma.c */ -- cgit v1.2.3