From 3a029efbd3b3347ab0724671c20f032ca539e000 Mon Sep 17 00:00:00 2001 From: vlj Date: Thu, 28 May 2015 23:00:40 +0200 Subject: [PATCH] d3d12: Add D8R8G8B8 format to texture Should fix human.ppu.elf --- rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp b/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp index 33772c3b8a..bcf28213f3 100644 --- a/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp +++ b/rpcs3/Emu/RSX/D3D12/D3D12Texture.cpp @@ -118,13 +118,17 @@ size_t D3D12GSRender::UploadTextures() case CELL_GCM_TEXTURE_W32_Z32_Y32_X32_FLOAT: case CELL_GCM_TEXTURE_X32_FLOAT: case CELL_GCM_TEXTURE_D1R5G5B5: - case CELL_GCM_TEXTURE_D8R8G8B8: case CELL_GCM_TEXTURE_Y16_X16_FLOAT: case ~(CELL_GCM_TEXTURE_LN | CELL_GCM_TEXTURE_UN) & CELL_GCM_TEXTURE_COMPRESSED_B8R8_G8R8: case ~(CELL_GCM_TEXTURE_LN | CELL_GCM_TEXTURE_UN) & CELL_GCM_TEXTURE_COMPRESSED_R8B8_R8G8: default: LOG_ERROR(RSX, "Unimplemented Texture format"); break; + case CELL_GCM_TEXTURE_D8R8G8B8: + dxgiFormat = DXGI_FORMAT_R8G8B8A8_UNORM; + blockSizeInByte = 4; + blockWidthInPixel = 1, blockHeightInPixel = 1; + break; case CELL_GCM_TEXTURE_A8R8G8B8: dxgiFormat = DXGI_FORMAT_R8G8B8A8_UNORM; blockSizeInByte = 4;