mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
d3d12: Fix pitch in COMPRESSED_DXT23/DXT45
Make pm_zcull.ppu.elf renders correctly.
This commit is contained in:
parent
24c23dc5f6
commit
cf27d4c2ca
1 changed files with 2 additions and 2 deletions
|
@ -201,12 +201,12 @@ ID3D12Resource *uploadSingleTexture(
|
|||
case CELL_GCM_TEXTURE_COMPRESSED_DXT23:
|
||||
blockSizeInByte = 16;
|
||||
blockWidthInPixel = 4, blockHeightInPixel = 4;
|
||||
srcPitch = w * 8;
|
||||
srcPitch = w * 4;
|
||||
break;
|
||||
case CELL_GCM_TEXTURE_COMPRESSED_DXT45:
|
||||
blockSizeInByte = 16;
|
||||
blockWidthInPixel = 4, blockHeightInPixel = 4;
|
||||
srcPitch = w * 8;
|
||||
srcPitch = w * 4;
|
||||
break;
|
||||
case CELL_GCM_TEXTURE_G8B8:
|
||||
blockSizeInByte = 2;
|
||||
|
|
Loading…
Add table
Reference in a new issue