mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-23 04:29:16 +01:00
Set default surfaceflinger parameters based off of preallocated buffers
Required by resident evil 4 as otherwise Dequeue would fail due to it using BGRA buffers but the default being RGBA.
This commit is contained in:
parent
106ad597db
commit
0f5f04ade3
@ -573,6 +573,9 @@ namespace skyline::service::hosbinder {
|
||||
else if (surface.layout == NvSurfaceLayout::Tiled)
|
||||
throw exception("Legacy 16Bx16 tiled surfaces are not supported");
|
||||
|
||||
defaultFormat = graphicBuffer->format;
|
||||
defaultWidth = graphicBuffer->width;
|
||||
defaultHeight = graphicBuffer->height;
|
||||
Logger::Debug("#{} - Dimensions: {}x{} [Stride: {}], Format: {}, Layout: {}, {}: {}, Usage: 0x{:X}, NvMap {}: {}, Buffer Start/End: 0x{:X} -> 0x{:X}", slot, surface.width, surface.height, handle.stride, ToString(handle.format), ToString(surface.layout), surface.layout == NvSurfaceLayout::Blocklinear ? "Block Height" : "Pitch", surface.layout == NvSurfaceLayout::Blocklinear ? 1U << surface.blockHeightLog2 : surface.pitch, graphicBuffer->usage, surface.nvmapHandle ? "Handle" : "ID", surface.nvmapHandle ? surface.nvmapHandle : handle.nvmapId, surface.offset, surface.offset + surface.size);
|
||||
} else {
|
||||
Logger::Debug("#{} - No GraphicBuffer", slot);
|
||||
|
Loading…
Reference in New Issue
Block a user