[GPU] Undo depth_and_color_formats_out renaming

This commit is contained in:
Triang3l 2021-06-14 19:00:57 +03:00
parent 357aa1cdd3
commit e48a678ac7
1 changed files with 7 additions and 7 deletions

View File

@ -801,10 +801,10 @@ bool RenderTargetCache::Update(bool is_rasterization_done,
uint32_t RenderTargetCache::GetLastUpdateBoundRenderTargets( uint32_t RenderTargetCache::GetLastUpdateBoundRenderTargets(
bool distinguish_gamma_formats, 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 (GetPath() != Path::kHostRenderTargets) {
if (depth_and_color_resource_formats_out) { if (depth_and_color_formats_out) {
std::memset(depth_and_color_resource_formats_out, 0, std::memset(depth_and_color_formats_out, 0,
sizeof(uint32_t) * (1 + xenos::kMaxColorRenderTargets)); sizeof(uint32_t) * (1 + xenos::kMaxColorRenderTargets));
} }
return 0; return 0;
@ -814,14 +814,14 @@ uint32_t RenderTargetCache::GetLastUpdateBoundRenderTargets(
const RenderTarget* render_target = const RenderTarget* render_target =
last_update_accumulated_render_targets_[i]; last_update_accumulated_render_targets_[i];
if (!render_target) { if (!render_target) {
if (depth_and_color_resource_formats_out) { if (depth_and_color_formats_out) {
depth_and_color_resource_formats_out[i] = 0; depth_and_color_formats_out[i] = 0;
} }
continue; continue;
} }
rts_used |= uint32_t(1) << i; rts_used |= uint32_t(1) << i;
if (depth_and_color_resource_formats_out) { if (depth_and_color_formats_out) {
depth_and_color_resource_formats_out[i] = depth_and_color_formats_out[i] =
(distinguish_gamma_formats && i && (distinguish_gamma_formats && i &&
(last_update_accumulated_color_targets_are_gamma_ & (last_update_accumulated_color_targets_are_gamma_ &
(uint32_t(1) << (i - 1)))) (uint32_t(1) << (i - 1))))