mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-20 07:10:04 +00:00
renderer_vulkan: fix query cache for homebrew
This commit is contained in:
parent
882859bc78
commit
7507a7f89f
1 changed files with 4 additions and 2 deletions
|
@ -1160,7 +1160,7 @@ struct QueryCacheRuntimeImpl {
|
|||
cpu_memory_),
|
||||
primitives_needed_minus_suceeded_streamer(
|
||||
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.pNext = nullptr;
|
||||
|
@ -1235,8 +1235,10 @@ void QueryCacheRuntime::Bind3DEngine(Maxwell3D* maxwell3d) {
|
|||
|
||||
template <typename Func>
|
||||
void QueryCacheRuntime::View3DRegs(Func&& func) {
|
||||
if (impl->maxwell3d) {
|
||||
func(*impl->maxwell3d);
|
||||
}
|
||||
}
|
||||
|
||||
void QueryCacheRuntime::EndHostConditionalRendering() {
|
||||
PauseHostConditionalRendering();
|
||||
|
|
Loading…
Reference in a new issue