d3d12: Add D8R8G8B8 format to texture

Should fix human.ppu.elf
This commit is contained in:
vlj 2015-05-28 23:00:40 +02:00 committed by Vincent Lejeune
parent 68a62f897d
commit 3a029efbd3

View File

@ -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;