mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-30 08:14:17 +01:00
Disable Vertex Buffers With 0 as IOVAs
A buffer with 0 as the start/end IOVA should be invalid as there shouldn't be any mappings at 0 in GPU VA, titles such as Puyo Puyo Tetris configure the Vertex Buffer with 0 IOVAs which leads to a segmentation fault without this exception.
This commit is contained in:
parent
cfeb8098db
commit
189b9533f2
@ -1195,7 +1195,7 @@ namespace skyline::gpu::interconnect {
|
||||
|
||||
BufferView *GetVertexBuffer(size_t index) {
|
||||
auto &vertexBuffer{vertexBuffers.at(index)};
|
||||
if (vertexBuffer.disabled || vertexBuffer.start > vertexBuffer.end)
|
||||
if (vertexBuffer.disabled || vertexBuffer.start > vertexBuffer.end || vertexBuffer.start == 0 || vertexBuffer.end == 0)
|
||||
return nullptr;
|
||||
else if (vertexBuffer.view)
|
||||
return &*vertexBuffer.view;
|
||||
|
Loading…
Reference in New Issue
Block a user