mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 12:32:43 +00:00
rsx: Pick tiler/detiler according to actual block size
This commit is contained in:
parent
188eefeeac
commit
2b9bfc0ec2
@ -696,7 +696,11 @@ namespace vk
|
||||
#if DEBUG_DMA_TILING
|
||||
auto real_data = vm::get_super_ptr<u8>(range.start);
|
||||
ext_data.resize(tiled_region.tile->size);
|
||||
rsx::tile_texel_data<u32, true>(
|
||||
auto detile_func = get_bpp() == 4
|
||||
? rsx::detile_texel_data32
|
||||
: rsx::detile_texel_data16;
|
||||
|
||||
detile_func(
|
||||
ext_data.data(),
|
||||
real_data,
|
||||
tiled_region.base_address,
|
||||
@ -706,7 +710,7 @@ namespace vk
|
||||
tiled_region.tile->pitch,
|
||||
subres.width_in_block,
|
||||
subres.height_in_block
|
||||
);
|
||||
);
|
||||
subres.data = std::span(ext_data);
|
||||
#else
|
||||
const auto [scratch_buf, linear_data_scratch_offset] = vk::detile_memory_block(cmd, tiled_region, range, subres.width_in_block, subres.height_in_block, get_bpp());
|
||||
|
@ -1790,7 +1790,11 @@ namespace rsx
|
||||
|
||||
if (tiled_region)
|
||||
{
|
||||
rsx::tile_texel_data<u32, false>(
|
||||
const auto tile_func = dst.bpp == 4
|
||||
? rsx::tile_texel_data32
|
||||
: rsx::tile_texel_data16;
|
||||
|
||||
tile_func(
|
||||
real_dst,
|
||||
dst.pixels,
|
||||
tiled_region.base_address,
|
||||
|
Loading…
x
Reference in New Issue
Block a user