summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-02-04 22:04:19 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-04 22:04:24 +0100
commit0eb36c90f4f52b1598dd5facdf8ec2160e25220b (patch)
treefbfa5fc739a62bb8a7af65ab968dd7a61d43ac01 /src/video_core
parentMerge pull request #3357 from ReinUsesLisp/bfi-rc (diff)
downloadyuzu-0eb36c90f4f52b1598dd5facdf8ec2160e25220b.tar
yuzu-0eb36c90f4f52b1598dd5facdf8ec2160e25220b.tar.gz
yuzu-0eb36c90f4f52b1598dd5facdf8ec2160e25220b.tar.bz2
yuzu-0eb36c90f4f52b1598dd5facdf8ec2160e25220b.tar.lz
yuzu-0eb36c90f4f52b1598dd5facdf8ec2160e25220b.tar.xz
yuzu-0eb36c90f4f52b1598dd5facdf8ec2160e25220b.tar.zst
yuzu-0eb36c90f4f52b1598dd5facdf8ec2160e25220b.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_rasterizer.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
index d2c6b1189..aada38702 100644
--- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp
+++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp
@@ -571,7 +571,7 @@ RasterizerVulkan::Texceptions RasterizerVulkan::UpdateAttachments() {
color_attachments[rt] = texture_cache.GetColorBufferSurface(rt, true);
}
if (color_attachments[rt] && WalkAttachmentOverlaps(*color_attachments[rt])) {
- texceptions.set(rt);
+ texceptions[rt] = true;
}
}
@@ -579,7 +579,7 @@ RasterizerVulkan::Texceptions RasterizerVulkan::UpdateAttachments() {
zeta_attachment = texture_cache.GetDepthBufferSurface(true);
}
if (zeta_attachment && WalkAttachmentOverlaps(*zeta_attachment)) {
- texceptions.set(ZETA_TEXCEPTION_INDEX);
+ texceptions[ZETA_TEXCEPTION_INDEX] = true;
}
texture_cache.GuardRenderTargets(false);
@@ -1122,11 +1122,12 @@ RenderPassParams RasterizerVulkan::GetRenderPassParams(Texceptions texceptions)
for (std::size_t rt = 0; rt < static_cast<std::size_t>(regs.rt_control.count); ++rt) {
const auto& rendertarget = regs.rt[rt];
- if (rendertarget.Address() == 0 || rendertarget.format == Tegra::RenderTargetFormat::NONE)
+ if (rendertarget.Address() == 0 || rendertarget.format == Tegra::RenderTargetFormat::NONE) {
continue;
+ }
renderpass_params.color_attachments.push_back(RenderPassParams::ColorAttachment{
static_cast<u32>(rt), PixelFormatFromRenderTargetFormat(rendertarget.format),
- texceptions.test(rt)});
+ texceptions[rt]});
}
renderpass_params.has_zeta = regs.zeta_enable;