OSDN Git Service

Add missing checks in the GraphicsPipeline constructor
authorAlexis Hetu <sugoi@google.com>
Fri, 7 Dec 2018 21:26:05 +0000 (16:26 -0500)
committerAlexis Hétu <sugoi@google.com>
Wed, 12 Dec 2018 13:05:02 +0000 (13:05 +0000)
commite6e76c617ad656733c4e3ad55b3664f2326603ac
tree80f300bf82117584cdccda12b4a6a4cc331c8f05
parentcaea0ba5a621b4135cf204e08d12ec4efb988a6d
Add missing checks in the GraphicsPipeline constructor

Adjusted a few checks in the GraphicsPipeline constructor,
specifically stages' specialization info and sample mask,
which can either be null or default.

Also fixed destroying Pipeline objects, making sure there's
no confusion between GraphicsPipeline and ComputePipeline's
destroy() methods inherited from their 2 base classes
(Pipeline::destroy() and ObjectBase::destroy()).

Bug b/118386749

Change-Id: I78be9f0bbb735518e07d52f7372dbf08b9834abf
Reviewed-on: https://swiftshader-review.googlesource.com/c/23110
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
src/Vulkan/VkPipeline.cpp
src/Vulkan/VkPipeline.hpp