mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
anv/formats: Disallow linear ASTC textures
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
80de528c7e
commit
bb550e2977
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue