diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-14 13:55:12 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-18 14:10:38 +0200 |
commit | 6ff6863c329434cfc3d1424db7ca0f614eff63fd (patch) | |
tree | 78974b9450953e6c0a6fddecfef6a2c71e757b9a /src/gallium/drivers/radeonsi/si_pipe.h | |
parent | 06ed251c328ebf5c635b972b14039165077d05df (diff) |
radeonsi: reduce overhead for resident textures which need color decompression
This is done by introducing a separate list.
si_decompress_textures() is now 5x faster.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |