mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-08 11:43:14 +00:00
video_core: Fix some regressions
This commit is contained in:
parent
20e83b4d53
commit
7d4f0da40e
5 changed files with 14 additions and 12 deletions
|
@ -93,8 +93,9 @@ void Rasterizer::BeginRendering() {
|
|||
|
||||
const auto& hint = liverpool->last_cb_extent[col_buf_id];
|
||||
const auto& image_view = texture_cache.RenderTarget(col_buf, hint);
|
||||
state.width = std::min<u32>(state.width, hint.width);
|
||||
state.height = std::min<u32>(state.height, hint.height);
|
||||
const auto& image = texture_cache.GetImage(image_view.image_id);
|
||||
state.width = std::min<u32>(state.width, image.info.size.width);
|
||||
state.height = std::min<u32>(state.height, image.info.size.height);
|
||||
|
||||
const bool is_clear = texture_cache.IsMetaCleared(col_buf.CmaskAddress());
|
||||
state.color_attachments[state.num_color_attachments++] = {
|
||||
|
@ -117,8 +118,8 @@ void Rasterizer::BeginRendering() {
|
|||
const auto& image_view = texture_cache.DepthTarget(regs.depth_buffer, htile_address, hint,
|
||||
regs.depth_control.depth_write_enable);
|
||||
const auto& image = texture_cache.GetImage(image_view.image_id);
|
||||
state.width = std::min<u32>(state.width, hint.width);
|
||||
state.height = std::min<u32>(state.height, hint.height);
|
||||
state.width = std::min<u32>(state.width, image.info.size.width);
|
||||
state.height = std::min<u32>(state.height, image.info.size.height);
|
||||
state.depth_attachment = {
|
||||
.imageView = *image_view.image_view,
|
||||
.imageLayout = image.layout,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue