From d38109d0474cf16efbdb0f4fc1ff5b443858aa7a Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 26 Aug 2019 13:10:18 +0100 Subject: [PATCH] Fix bindless feedback SPIR-V modification --- renderdoc/driver/vulkan/vk_bindless_feedback.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/vulkan/vk_bindless_feedback.cpp b/renderdoc/driver/vulkan/vk_bindless_feedback.cpp index 3536041de..6b7391679 100644 --- a/renderdoc/driver/vulkan/vk_bindless_feedback.cpp +++ b/renderdoc/driver/vulkan/vk_bindless_feedback.cpp @@ -184,7 +184,7 @@ void AnnotateShader(const SPIRVPatchData &patchData, const char *entryName, // add our SSBO variable, at set 0 binding 0 ssboVar = editor.MakeId(); - editor.AddDecoration(rdcspv::OpVariable(bufptrtype, ssboVar, rdcspv::StorageClass::Uniform)); + editor.AddVariable(rdcspv::OpVariable(bufptrtype, ssboVar, rdcspv::StorageClass::Uniform)); editor.AddDecoration( rdcspv::OpDecorate(ssboVar, rdcspv::DecorationParam(0))); editor.AddDecoration( @@ -394,7 +394,7 @@ void AnnotateShader(const SPIRVPatchData &patchData, const char *entryName, // be longer than 5 words (1 index). Think of the case of a uniform buffer where the first // index goes into the descriptor array, and further indices go inside the uniform buffer // members. - RDCASSERT(chain.indexes.size() > 1, chain.indexes.size()); + RDCASSERT(chain.indexes.size() >= 1, chain.indexes.size()); rdcspv::Id index = chain.indexes[0];