OSDN Git Service

Allow the Blitter to clear and blit vk::Image objects directly
authorAlexis Hetu <sugoi@google.com>
Fri, 1 Mar 2019 16:55:59 +0000 (11:55 -0500)
committerAlexis Hétu <sugoi@google.com>
Mon, 11 Mar 2019 22:24:20 +0000 (22:24 +0000)
commit3364227fa0d88a3681e03237461cf0d2e4c9b39e
tree044f393043bf70b0512f599771781841bc56ddb5
parent654540e86243fd2cab6db3d03d8c6a3d7425b4a1
Allow the Blitter to clear and blit vk::Image objects directly

The sw::Surface object was the intermediate representation of an
image used between the vk::Image and the Blitter. This cl removes
the need for an intermediate representation by having the Blitter
use the vk::Image directly.

There should be no regression for the clear and blit tests.

Bug b/126883332

Change-Id: Icbc15470e3ad112ed78f4f62d6d82c66e3e37a20
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25928
Tested-by: Alexis Hétu <sugoi@google.com>
Presubmit-Ready: Alexis Hétu <sugoi@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
src/Device/Blitter.cpp
src/Device/Blitter.hpp
src/Vulkan/VkImage.cpp
src/Vulkan/VkImage.hpp