Commit
df5dee64
authored
by
Committed by
swiftshader-scoped@luci-project-accounts.iam.gserviceaccount.com
Allow sampling usage when querying linear image format properties.
Currently, VkImages with VK_IMAGE_TILING_OPTIMAL tiling actually
also have a linear texel layout in our current implementation,
thus it can be sampled or used as blit source. And we would
like to add support to sampling features for linear images when
calling vkGetPhysicalDeviceImageFormatProperties() to query image
format properties.
Exceptions include images with compressed formats and images
created to be used as cube maps.
This will unblock SwiftShader users like AEMU/FEMU from sampling
host-visible memory shared between guest processes.
Bug: b/171299814
Bug: fuchsia:54153
Bug: fuchsia:68365
Test: dEQP-VK.*
Change-Id: Id9019fc9d9239fc85d0d2b086d4efd468844d254
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/49108
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
Commit-Queue: Yilong Li <liyl@google.com>
Tested-by:
Yilong Li <liyl@google.com>
Showing
Please
register
or
sign in
to comment