From e48a678ac76cf43226763b704c6a4a60207863f5 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Mon, 14 Jun 2021 19:00:57 +0300 Subject: [PATCH] [GPU] Undo depth_and_color_formats_out renaming --- src/xenia/gpu/render_target_cache.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/xenia/gpu/render_target_cache.cc b/src/xenia/gpu/render_target_cache.cc index 2b4ea97ef..ec83cc4fd 100644 --- a/src/xenia/gpu/render_target_cache.cc +++ b/src/xenia/gpu/render_target_cache.cc @@ -801,10 +801,10 @@ bool RenderTargetCache::Update(bool is_rasterization_done, uint32_t RenderTargetCache::GetLastUpdateBoundRenderTargets( bool distinguish_gamma_formats, - uint32_t* depth_and_color_resource_formats_out) const { + uint32_t* depth_and_color_formats_out) const { if (GetPath() != Path::kHostRenderTargets) { - if (depth_and_color_resource_formats_out) { - std::memset(depth_and_color_resource_formats_out, 0, + if (depth_and_color_formats_out) { + std::memset(depth_and_color_formats_out, 0, sizeof(uint32_t) * (1 + xenos::kMaxColorRenderTargets)); } return 0; @@ -814,14 +814,14 @@ uint32_t RenderTargetCache::GetLastUpdateBoundRenderTargets( const RenderTarget* render_target = last_update_accumulated_render_targets_[i]; if (!render_target) { - if (depth_and_color_resource_formats_out) { - depth_and_color_resource_formats_out[i] = 0; + if (depth_and_color_formats_out) { + depth_and_color_formats_out[i] = 0; } continue; } rts_used |= uint32_t(1) << i; - if (depth_and_color_resource_formats_out) { - depth_and_color_resource_formats_out[i] = + if (depth_and_color_formats_out) { + depth_and_color_formats_out[i] = (distinguish_gamma_formats && i && (last_update_accumulated_color_targets_are_gamma_ & (uint32_t(1) << (i - 1))))