Mesa (master): tgsi/scan: add hw atomic to the list of memory accessing files

Dave Airlie airlied at kemper.freedesktop.org
Wed May 23 02:54:04 UTC 2018


Module: Mesa
Branch: master
Commit: f2f464de576187891eeadb3e7fadf9ddbf322cba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2f464de576187891eeadb3e7fadf9ddbf322cba

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu May 10 01:01:58 2018 +0100

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 at amd.com>
Cc: "18.0 18.1" <mesa-stable at lists.freedesktop.org>

---

 src/gallium/auxiliary/tgsi/tgsi_scan.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 685a413c4e..e13500a7f7 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;
 }
 
 




More information about the mesa-commit mailing list