From 6ff6863c329434cfc3d1424db7ca0f614eff63fd Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 14 Jun 2017 13:55:12 +0200 Subject: radeonsi: reduce overhead for resident textures which need color decompression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is done by introducing a separate list. si_decompress_textures() is now 5x faster. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 3834cea893f..afe68a3d35d 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -243,14 +243,12 @@ struct si_texture_handle { struct si_bindless_descriptor *desc; struct pipe_sampler_view *view; - bool needs_color_decompress; }; struct si_image_handle { struct si_bindless_descriptor *desc; struct pipe_image_view view; - bool needs_color_decompress; }; struct si_context { @@ -432,6 +430,8 @@ struct si_context { struct util_dynarray resident_img_handles; /* Resident bindless handles which need decompression */ + struct util_dynarray resident_tex_needs_color_decompress; + struct util_dynarray resident_img_needs_color_decompress; struct util_dynarray resident_tex_needs_depth_decompress; /* Bindless state */ -- cgit v1.2.3