mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-28 17:28:26 +00:00
hot-fix: missing fce barrier
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
This commit is contained in:
parent
400da1aa8d
commit
c2e9c877dd
|
@ -216,7 +216,7 @@ void Rasterizer::EliminateFastClear() {
|
||||||
const auto& hint = liverpool->last_cb_extent[0];
|
const auto& hint = liverpool->last_cb_extent[0];
|
||||||
VideoCore::TextureCache::RenderTargetDesc desc(col_buf, hint);
|
VideoCore::TextureCache::RenderTargetDesc desc(col_buf, hint);
|
||||||
const auto& image_view = texture_cache.FindRenderTarget(desc);
|
const auto& image_view = texture_cache.FindRenderTarget(desc);
|
||||||
const auto& image = texture_cache.GetImage(image_view.image_id);
|
auto& image = texture_cache.GetImage(image_view.image_id);
|
||||||
const vk::ImageSubresourceRange range = {
|
const vk::ImageSubresourceRange range = {
|
||||||
.aspectMask = vk::ImageAspectFlagBits::eColor,
|
.aspectMask = vk::ImageAspectFlagBits::eColor,
|
||||||
.baseMipLevel = 0,
|
.baseMipLevel = 0,
|
||||||
|
@ -225,7 +225,8 @@ void Rasterizer::EliminateFastClear() {
|
||||||
.layerCount = col_buf.view.slice_max - col_buf.view.slice_start + 1,
|
.layerCount = col_buf.view.slice_max - col_buf.view.slice_start + 1,
|
||||||
};
|
};
|
||||||
scheduler.EndRendering();
|
scheduler.EndRendering();
|
||||||
scheduler.CommandBuffer().clearColorImage(image.image, vk::ImageLayout::eColorAttachmentOptimal,
|
image.Transit(vk::ImageLayout::eTransferDstOptimal, vk::AccessFlagBits2::eTransferWrite, {});
|
||||||
|
scheduler.CommandBuffer().clearColorImage(image.image, image.last_state.layout,
|
||||||
LiverpoolToVK::ColorBufferClearValue(col_buf).color,
|
LiverpoolToVK::ColorBufferClearValue(col_buf).color,
|
||||||
range);
|
range);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue