Module: Mesa Branch: master Commit: bb550e297774bd1fdd274a98738e6353d1cda73e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb550e297774bd1fdd274a98738e6353d1cda73e
Author: Nanley Chery <nanley.g.ch...@intel.com> Date: Thu Sep 22 15:43:07 2016 -0700 anv/formats: Disallow linear ASTC textures Signed-off-by: Nanley Chery <nanley.g.ch...@intel.com> Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net> --- src/intel/vulkan/anv_formats.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 1b8b881..7497a38 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -423,6 +423,10 @@ anv_physical_device_get_format_properties(struct anv_physical_device *physical_d tiled &= ~VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT & ~VK_FORMAT_FEATURE_BLIT_DST_BIT; } + + /* ASTC textures must be in Y-tiled memory */ + if (isl_format_get_layout(linear_fmt.isl_format)->txc == ISL_TXC_ASTC) + linear = 0; } out_properties->linearTilingFeatures = linear; _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit