From 4c5df8c03981c804480feaa9be922131f338e629 Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 19 Jul 2025 08:53:08 +0100 Subject: [PATCH] [nvdrv] fix --- src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp index 6c7b8c8e62..c4d55b2fd5 100644 --- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp +++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp @@ -264,10 +264,10 @@ NvResult nvhost_ctrl_gpu::ZBCQueryTable(IoctlZbcQueryTable& params) { u32_le index_size; } entry = {}; std::memset(&entry, 0, sizeof(entry)); - auto const index = param.index_size; + auto const index = params.index_size; if (params.type == 0) { //no entry.index_size = 15; - } else if (param.type == 1) { //color + } else if (params.type == 1) { //color ASSERT(index < 16); for (auto i = 0; i < 4; ++i) { params.color_ds[i] = this->color_entries[index].color_ds[i]; @@ -275,13 +275,13 @@ NvResult nvhost_ctrl_gpu::ZBCQueryTable(IoctlZbcQueryTable& params) { } // TODO: Only if no error thrown (otherwise dont modify) params.format = this->color_entries[index].format; - params.ref_cnt = this->color_entries[index].ref_cnt; - } else if (param.type == 2) { //depth + //params.ref_cnt = this->color_entries[index].ref_cnt; + } else if (params.type == 2) { //depth ASSERT(index < 16); params.depth = this->depth_entries[index].depth; // TODO: Only if no error thrown (otherwise dont modify) params.format = this->depth_entries[index].format; - params.ref_cnt = this->depth_entries[index].ref_cnt; + //params.ref_cnt = this->depth_entries[index].ref_cnt; } else { UNREACHABLE(); }