Repository navigation
Commit ffe5947
committed
[Impeller] Enable ETC2/ASTC LDR/BC texture compression features at Vulkan device creation
The read-back in SetPhysicalDevice checks enabled_features for
textureCompressionETC2, textureCompressionASTC_LDR, and
textureCompressionBC, but GetEnabledDeviceFeatures never requested
these core Vulkan 1.0 features at device creation. As a result,
flutter_gpu always reports no compressed texture support on Android
Vulkan devices, regardless of hardware capability.
This was a three-line omission in PR flutter#187077 which wired the
read-back on all three backends but only enabled the features on
GLES and Metal. ASTC HDR was already correctly enabled via
VK_EXT_texture_compression_astc_hdr.
Mirror the existing samplerAnisotropy pattern: request each feature
if supported, so the read-back reflects real hardware support.
Fixes flutter#1891071 parent d776076 commit ffe5947
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
459 | 468 | | |
460 | 469 | | |
461 | 470 | | |
| |||
0 commit comments