mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 17:11:23 +00:00
vk: Fix some missing render target declarations
This commit is contained in:
parent
65ead08880
commit
9e4bec8cec
@ -42,7 +42,8 @@ namespace vk
|
||||
VK_IMAGE_LAYOUT_UNDEFINED,
|
||||
VK_IMAGE_TILING_OPTIMAL,
|
||||
usage,
|
||||
0));
|
||||
0,
|
||||
format_class()));
|
||||
|
||||
resolve_surface->native_component_map = native_component_map;
|
||||
resolve_surface->change_layout(cmd, VK_IMAGE_LAYOUT_GENERAL);
|
||||
@ -518,21 +519,14 @@ namespace vk
|
||||
const auto src_bpp = src_texture->get_bpp();
|
||||
rsx::typeless_xfer typeless_info{};
|
||||
|
||||
if (src_texture->info.format == info.format) [[likely]]
|
||||
{
|
||||
verify(HERE), src_bpp == dst_bpp;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!formats_are_bitcast_compatible(format(), src_texture->format()) ||
|
||||
src_texture->aspect() != aspect())
|
||||
if (src_texture->aspect() != aspect() ||
|
||||
!formats_are_bitcast_compatible(this, src_texture))
|
||||
{
|
||||
typeless_info.src_is_typeless = true;
|
||||
typeless_info.src_context = rsx::texture_upload_context::framebuffer_storage;
|
||||
typeless_info.src_native_format_override = static_cast<u32>(info.format);
|
||||
typeless_info.src_scaling_hint = f32(src_bpp) / dst_bpp;
|
||||
}
|
||||
}
|
||||
|
||||
section.init_transfer(this);
|
||||
auto src_area = section.src_rect();
|
||||
@ -768,7 +762,8 @@ namespace rsx
|
||||
VK_IMAGE_LAYOUT_UNDEFINED,
|
||||
VK_IMAGE_TILING_OPTIMAL,
|
||||
ref->info.usage,
|
||||
ref->info.flags);
|
||||
ref->info.flags,
|
||||
ref->format_class());
|
||||
|
||||
sink->add_ref();
|
||||
sink->set_spp(ref->get_spp());
|
||||
|
Loading…
Reference in New Issue
Block a user