mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
anv/device: Set the compressed texture feature flags correctly
Sampling from an ETC2 texture is supported on Bay Trail and from Gen8 onwards. While ASTC_LDR is supported on Gen9, the logic to handle such formats has not yet been implemented in the driver. Fixes dEQP-VK.api.info.format_properties.compressed_formats. v2: Enable ETC2 for Bay Trail (Kenneth Graunke) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94896 Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
e0806930ad
commit
5f7e8eac42
1 changed files with 3 additions and 2 deletions
|
|
@ -380,8 +380,9 @@ void anv_GetPhysicalDeviceFeatures(
|
|||
.alphaToOne = true,
|
||||
.multiViewport = true,
|
||||
.samplerAnisotropy = false, /* FINISHME */
|
||||
.textureCompressionETC2 = true,
|
||||
.textureCompressionASTC_LDR = true,
|
||||
.textureCompressionETC2 = pdevice->info->gen >= 8 ||
|
||||
pdevice->info->is_baytrail,
|
||||
.textureCompressionASTC_LDR = false, /* FINISHME */
|
||||
.textureCompressionBC = true,
|
||||
.occlusionQueryPrecise = true,
|
||||
.pipelineStatisticsQuery = false,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue