tgsi/scan: add hw atomic to the list of memory accessing files
authorDave Airlie <airlied@redhat.com>
Thu, 10 May 2018 00:01:58 +0000 (01:01 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 May 2018 02:51:40 +0000 (03:51 +0100)
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>
src/gallium/auxiliary/tgsi/tgsi_scan.c

index 685a413c4e6b5b29800d2839e6ce37ab04ea73a3..e13500a7f7beae155d452c0685b0d1025b0ec255 100644 (file)
@@ -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;
 }