Mesa (master): anv: Don't advertise ASTC support on BSW

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 15 21:55:45 UTC 2018


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

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Oct 15 13:07:06 2018 -0500

anv: Don't advertise ASTC support on BSW

Tested-by: Mark Janes <mark.a.janes at intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>

---

 src/intel/vulkan/anv_formats.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index 33faf7cc37..9199567f44 100644
--- a/src/intel/vulkan/anv_formats.c
+++ b/src/intel/vulkan/anv_formats.c
@@ -521,6 +521,14 @@ get_image_format_features(const struct gen_device_info *devinfo,
        isl_format_get_layout(plane_format.isl_format)->txc == ISL_TXC_ASTC)
       return 0;
 
+   /* ASTC requires nasty workarounds on BSW so we just disable it for now.
+    *
+    * TODO: Figure out the ASTC workarounds and re-enable on BSW.
+    */
+   if (devinfo->gen < 9 &&
+       isl_format_get_layout(plane_format.isl_format)->txc == ISL_TXC_ASTC)
+      return 0;
+
    if (isl_format_supports_sampling(devinfo, plane_format.isl_format)) {
       flags |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
 




More information about the mesa-commit mailing list