summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_formats.c
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2016-09-22 15:43:07 -0700
committerNanley Chery <[email protected]>2016-11-03 11:22:58 -0700
commitbb550e297774bd1fdd274a98738e6353d1cda73e (patch)
tree214228d79ff96f8d675b154b7e554731ba0084a3 /src/intel/vulkan/anv_formats.c
parent80de528c7e75d9a01811d48c82af170da9dc2364 (diff)
anv/formats: Disallow linear ASTC textures
Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_formats.c')
-rw-r--r--src/intel/vulkan/anv_formats.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index 1b8b881dfa2..7497a38e6b2 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;