vulkan: correctly set INDEPENDENT_BLEND,make runable on Android 8.x #2498
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Connections
#2419
Description
Andorid 8.x(Vulkan 1.0) doesn't support the
independent_blend
feature, running on these devices failed atrequest_device
:W/wgpu_hal::vulkan: Unrecognized device error ERROR_FEATURE_NOT_PRESENT
Testing
Tested on these devices:
Samsung Galaxy S7 edge (Android 8.0)
Google Nexus 5x (Android 8.1)
OPPO R15 (Android 8.1)
HuaWei MatePad 11 (Android 10)
Google Pixel 5 (Android 12)
via wgpu-on-app.
Pixel 5 successfully runs all examples before and after this commit.
On MatePad 11, only HDR ASTC example keeps failing because the
TEXTURE_COMPRESSION_ASTC_HDR
feature is not supported.The boid, masa-line, and cube examples previously only runs on Pixel 5 and MatePad 11, and successfully runs on all devices now.
water and shadow examples failed on Galaxy S7 edge and Nexus 5x that because of naga compiling shader error, also tried updating naga to latest commit and got the same result:
shadow error:
water error:
water example running on OPPO R15 get weird render result: