OSDN Git Service

Replaced sw::Format with VkFormat
authorAlexis Hetu <sugoi@google.com>
Wed, 14 Nov 2018 18:39:28 +0000 (13:39 -0500)
committerAlexis Hétu <sugoi@google.com>
Wed, 21 Nov 2018 19:59:42 +0000 (19:59 +0000)
commitdd152e1b7c675f8e9465610478320eb314ab0fda
tree2739071593834e0dd9dacecae290eea768eca170
parentb16f9897a86817da090baa536dbcd4c9d488090e
Replaced sw::Format with VkFormat

To avoid format conversion issues and simplify the code, sw::Format
was replaced with VkFormat. sw::Format only contained formats with
exact 1:1 correspondence with an equivalent VkFormat, with the
exception of YUV formats, which will require a minor adjustment in
SamplerCore::sampleTexel().

Bug b/119620767

Change-Id: I8124cbc40e1031a5b233156a10e87c35f1334eef
Reviewed-on: https://swiftshader-review.googlesource.com/c/22549
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
19 files changed:
src/Device/Blitter.cpp
src/Device/Blitter.hpp
src/Device/Context.cpp
src/Device/Context.hpp
src/Device/PixelProcessor.hpp
src/Device/Renderer.cpp
src/Device/Renderer.hpp
src/Device/Sampler.cpp
src/Device/Sampler.hpp
src/Device/Surface.cpp
src/Device/Surface.hpp
src/Pipeline/PixelProgram.cpp
src/Pipeline/PixelRoutine.cpp
src/Pipeline/SamplerCore.cpp
src/WSI/FrameBuffer.cpp
src/WSI/FrameBuffer.hpp
src/WSI/FrameBufferAndroid.cpp
src/WSI/FrameBufferDD.cpp
src/WSI/FrameBufferGDI.cpp