Skip to content
Snippets Groups Projects
Unverified Commit 926e24c6 authored by Fernando S's avatar Fernando S Committed by GitHub
Browse files

Merge pull request #11622 from liamwhite/qcr-reg1

renderer_vulkan: fix query cache for homebrew
parents 18a396b5 7507a7f8
No related branches found
No related tags found
No related merge requests found
...@@ -1160,7 +1160,7 @@ struct QueryCacheRuntimeImpl { ...@@ -1160,7 +1160,7 @@ struct QueryCacheRuntimeImpl {
cpu_memory_), cpu_memory_),
primitives_needed_minus_suceeded_streamer( primitives_needed_minus_suceeded_streamer(
static_cast<size_t>(QueryType::StreamingPrimitivesNeededMinusSucceeded), runtime, 0u), static_cast<size_t>(QueryType::StreamingPrimitivesNeededMinusSucceeded), runtime, 0u),
hcr_setup{}, hcr_is_set{}, is_hcr_running{} { hcr_setup{}, hcr_is_set{}, is_hcr_running{}, maxwell3d{} {
hcr_setup.sType = VK_STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXT; hcr_setup.sType = VK_STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXT;
hcr_setup.pNext = nullptr; hcr_setup.pNext = nullptr;
...@@ -1235,7 +1235,9 @@ void QueryCacheRuntime::Bind3DEngine(Maxwell3D* maxwell3d) { ...@@ -1235,7 +1235,9 @@ void QueryCacheRuntime::Bind3DEngine(Maxwell3D* maxwell3d) {
template <typename Func> template <typename Func>
void QueryCacheRuntime::View3DRegs(Func&& func) { void QueryCacheRuntime::View3DRegs(Func&& func) {
func(*impl->maxwell3d); if (impl->maxwell3d) {
func(*impl->maxwell3d);
}
} }
void QueryCacheRuntime::EndHostConditionalRendering() { void QueryCacheRuntime::EndHostConditionalRendering() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment