summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-05-10 01:01:58 +0100
committerJuan A. Suarez Romero <jasuarez@igalia.com>2018-05-23 16:28:02 +0200
commit6a0c2860e7237badfd71d063fa3b91a4a25f595a (patch)
tree4eade4f3b02ce81fa466c2c97ce939bfdb8b6794
parentb582b8fc93697d193365bf11cd9f336d786d7f8d (diff)
downloadmesa-6a0c2860e7237badfd71d063fa3b91a4a25f595a.tar.gz
tgsi/scan: add hw atomic to the list of memory accessing files
This fixes 4 out of 5 cases in: arb_framebuffer_no_attachments-atomic on cayman. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Cc: "18.0 18.1" <mesa-stable@lists.freedesktop.org> (cherry picked from commit f2f464de576187891eeadb3e7fadf9ddbf322cba)
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 989c57ebeed..aee4728d9c1 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -50,7 +50,8 @@ is_memory_file(unsigned file)
return file == TGSI_FILE_SAMPLER ||
file == TGSI_FILE_SAMPLER_VIEW ||
file == TGSI_FILE_IMAGE ||
- file == TGSI_FILE_BUFFER;
+ file == TGSI_FILE_BUFFER ||
+ file == TGSI_FILE_HW_ATOMIC;
}