diff options
author | Jason Ekstrand <[email protected]> | 2018-10-15 13:07:06 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-10-15 16:55:25 -0500 |
commit | e4c9bcd037b3c1c3839dc2efdbadedf24864d586 (patch) | |
tree | 6ca45e21a19dbe3e673a0bca20495d912ff4070b /src/intel/vulkan/anv_formats.c | |
parent | 26a2ce35aba4e63b17dfb95f7b0d9e61fa71cc72 (diff) |
anv: Don't advertise ASTC support on BSW
Tested-by: Mark Janes <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_formats.c')
-rw-r--r-- | src/intel/vulkan/anv_formats.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 33faf7cc37f..9199567f445 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; |