OSDN Git Service

Remove some GL/D3D legacy format quirks from vulkan vertex buffers
authorChris Forbes <chrisforbes@google.com>
Wed, 27 Feb 2019 21:48:24 +0000 (13:48 -0800)
committerChris Forbes <chrisforbes@google.com>
Mon, 4 Mar 2019 20:40:40 +0000 (20:40 +0000)
commitd318dd32942390dcbfe10851e942060efabc4968
treed5b70a297f41e3a073feb70a758aac749745b8ae
parentc7943e92f1d291432ba182721812e6df72cebd79
Remove some GL/D3D legacy format quirks from vulkan vertex buffers

- Fix mapping of B8G8R8A8 -- this is the same as the old D3DCOLOR.
- Remove all the other stream types that don't match anything in Vulkan.
- Remove unused resource pointer in stream

There is still future cleanup work to do here -- we should be able to
do vertex fetch purely based on the VkFormat rather than mapping it onto
the GL model.

Change-Id: Ia100ec68e8930acd17b6cba35a27403b4ef8e883
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25768
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Tested-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Device/Stream.hpp
src/Pipeline/VertexRoutine.cpp
src/Vulkan/VkPipeline.cpp