Vulkan: Plumb the debug context down to SpirvShader SpirvShader doesn't actually do anything with this (yet). Extracts the dull plumbing from the meat of the SpirvShader debugger implementation. Bug: b/145351270 Change-Id: I1a648d8e463c428a232f711d0cc5dd0ecf94ad1e Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/38914 Reviewed-by: Nicolas Capens <nicolascapens@google.com> Tested-by: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
diff --git a/src/Pipeline/SpirvShader.hpp b/src/Pipeline/SpirvShader.hpp index f32cc63..b7c3eeb 100644 --- a/src/Pipeline/SpirvShader.hpp +++ b/src/Pipeline/SpirvShader.hpp
@@ -50,6 +50,10 @@ class RenderPass; struct SampledImageDescriptor; +namespace dbg { +class Context; +} // namespace dbg + } // namespace vk namespace sw { @@ -473,7 +477,8 @@ InsnStore const &insns, const vk::RenderPass *renderPass, uint32_t subpassIndex, - bool robustBufferAccess); + bool robustBufferAccess, + const std::shared_ptr<vk::dbg::Context> &dbgctx); struct Modes {