Don't update scissor state >0 unless multiview is supported

This commit is contained in:
Billy Laws 2022-09-17 13:09:36 +01:00
parent 55d77b7eb0
commit afcfe8a7fa

View File

@ -239,6 +239,9 @@ namespace skyline::gpu::interconnect::maxwell3d {
ScissorState::ScissorState(dirty::Handle dirtyHandle, DirtyManager &manager, const EngineRegisters &engine, u32 index) : engine{manager, dirtyHandle, engine}, index{index} {} ScissorState::ScissorState(dirty::Handle dirtyHandle, DirtyManager &manager, const EngineRegisters &engine, u32 index) : engine{manager, dirtyHandle, engine}, index{index} {}
void ScissorState::Flush(InterconnectContext &ctx, StateUpdateBuilder &builder) { void ScissorState::Flush(InterconnectContext &ctx, StateUpdateBuilder &builder) {
if (index != 0 && !ctx.gpu.traits.supportsMultipleViewports)
return;
builder.SetScissor(index, [&]() { builder.SetScissor(index, [&]() {
if (engine->scissor.enable) { if (engine->scissor.enable) {
const auto &vertical{engine->scissor.vertical}; const auto &vertical{engine->scissor.vertical};