-
Add VK_IMAGE_USAGE_SAMPLED_BIT to SurfaceKHR · 680d3761Alexis Hetu authored
ANGLE needs to be able to sample surfaces in order to emulate things like glBlitFramebuffer or use EGL images as textures. Section 32.3. Required Format Support of the Vulkan 1.1 spec dictates that all formats which must support VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT, also support VK_IMAGE_USAGE_TRANSFER_SRC_BIT, VK_IMAGE_USAGE_TRANSFER_DST_BIT, and VK_IMAGE_USAGE_SAMPLE_BIT. It should already work properly in SwiftShader, so this cl just adds the bit. Bug b/139412450 b/139479506 Change-Id: I0f79d042789a8b6372f75ecf6cda5f28c6955652 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/35709Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
680d3761
×