From bd868ae6ccb7ed5f104076dfbdd92000d91ac84c Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sat, 18 Aug 2018 18:37:20 +0300 Subject: [PATCH] [D3D12] Fix a typo in linear texture address calculation --- src/xenia/gpu/d3d12/shaders/texture_copy.hlsli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/gpu/d3d12/shaders/texture_copy.hlsli b/src/xenia/gpu/d3d12/shaders/texture_copy.hlsli index 20ddf8c44..9908633f6 100644 --- a/src/xenia/gpu/d3d12/shaders/texture_copy.hlsli +++ b/src/xenia/gpu/d3d12/shaders/texture_copy.hlsli @@ -43,7 +43,7 @@ uint4 XeTextureCopyGuestBlockOffsets(uint3 block_index, uint bpb, block_offsets_guest = uint4(0u, 1u, 2u, 3u) * bpb + XeTextureGuestLinearOffset( block_index_guest, xe_texture_copy_size_blocks.y, - xe_texture_copy_guest_pitch, 16u); + xe_texture_copy_guest_pitch, bpb); } return block_offsets_guest + xe_texture_copy_guest_base; }