mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
d3d12: Fix some src pitch
This commit is contained in:
parent
68d3f6f536
commit
33daa81e6f
1 changed files with 4 additions and 4 deletions
|
@ -187,17 +187,17 @@ ID3D12Resource *uploadSingleTexture(
|
|||
case CELL_GCM_TEXTURE_A1R5G5B5:
|
||||
blockSizeInByte = 2;
|
||||
blockHeightInPixel = 1, blockWidthInPixel = 1;
|
||||
srcPitch = w * 4;
|
||||
srcPitch = w * 2;
|
||||
break;
|
||||
case CELL_GCM_TEXTURE_A4R4G4B4:
|
||||
blockSizeInByte = 2;
|
||||
blockWidthInPixel = 1, blockHeightInPixel = 1;
|
||||
srcPitch = w * 4;
|
||||
srcPitch = w * 2;
|
||||
break;
|
||||
case CELL_GCM_TEXTURE_R5G6B5:
|
||||
blockSizeInByte = 2;
|
||||
blockWidthInPixel = 1, blockHeightInPixel = 1;
|
||||
srcPitch = w * 4;
|
||||
srcPitch = w * 2;
|
||||
break;
|
||||
case CELL_GCM_TEXTURE_A8R8G8B8:
|
||||
blockSizeInByte = 4;
|
||||
|
@ -228,7 +228,7 @@ ID3D12Resource *uploadSingleTexture(
|
|||
// Not native
|
||||
blockSizeInByte = 4;
|
||||
blockWidthInPixel = 1, blockHeightInPixel = 1;
|
||||
srcPitch = w * 4;
|
||||
srcPitch = w * 2;
|
||||
break;
|
||||
case CELL_GCM_TEXTURE_DEPTH24_D8:
|
||||
blockSizeInByte = 4;
|
||||
|
|
Loading…
Add table
Reference in a new issue