mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-06 00:30:18 +01:00
[amdgpu] device: added 5_6_5 surface support
This commit is contained in:
parent
01918f23ae
commit
a274719db7
|
|
@ -1615,6 +1615,16 @@ static VkFormat surfaceFormatToVkFormat(SurfaceFormat surface,
|
|||
}
|
||||
break;
|
||||
|
||||
case kSurfaceFormat5_6_5:
|
||||
switch (channel) {
|
||||
case kTextureChannelTypeUNorm:
|
||||
return VK_FORMAT_R5G6B5_UNORM_PACK16;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case kSurfaceFormat16_16:
|
||||
switch (channel) {
|
||||
case kTextureChannelTypeUInt:
|
||||
|
|
@ -2820,7 +2830,7 @@ struct CacheLine {
|
|||
|
||||
if ((access & shader::AccessOp::Load) == shader::AccessOp::Load) {
|
||||
// TODO
|
||||
// handleHostInvalidations(writeTag - 1, cacheBeginAddress, cacheSize)
|
||||
// handleHostInvalidations(writeTag - 1, cacheBeginAddress, cacheSize);
|
||||
|
||||
if (!result->isInSync(hostSyncTable, hostSyncMtx, address, size)) {
|
||||
auto buffer = getBufferInternal(address, size);
|
||||
|
|
|
|||
Loading…
Reference in a new issue