radeonsi: remove unused SI_IMAGE_ACCESS_AS_BUFFER

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10813>
This commit is contained in:
Marek Olšák
2021-05-06 17:37:24 -04:00
committed by Marge Bot
parent 66c8e40d69
commit c7e731c737
2 changed files with 2 additions and 3 deletions
@@ -700,7 +700,7 @@ static void si_set_shader_image_desc(struct si_context *ctx, const struct pipe_i
res = si_resource(view->resource);
if (res->b.b.target == PIPE_BUFFER || view->shader_access & SI_IMAGE_ACCESS_AS_BUFFER) {
if (res->b.b.target == PIPE_BUFFER) {
if (view->access & PIPE_IMAGE_ACCESS_WRITE)
si_mark_image_range_valid(view);
@@ -780,7 +780,7 @@ static void si_set_shader_image(struct si_context *ctx, unsigned shader, unsigne
if (&images->views[slot] != view)
util_copy_image_view(&images->views[slot], view);
if (res->b.b.target == PIPE_BUFFER || view->shader_access & SI_IMAGE_ACCESS_AS_BUFFER) {
if (res->b.b.target == PIPE_BUFFER) {
images->needs_color_decompress_mask &= ~(1 << slot);
images->display_dcc_store_mask &= ~(1u << slot);
res->bind_history |= PIPE_BIND_SHADER_IMAGE;
-1
View File
@@ -169,7 +169,6 @@ enum si_clear_code
DCC_UNCOMPRESSED = 0xFFFFFFFF,
};
#define SI_IMAGE_ACCESS_AS_BUFFER (1 << 7)
#define SI_IMAGE_ACCESS_DCC_OFF (1 << 8)
#define SI_IMAGE_ACCESS_DCC_WRITE (1 << 9)