mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
softgpu: Use region as a second scissor.
It's effectively a scissor in the common case of REGION1 being zero.
This commit is contained in:
1 parent
bc71a0d8e2
commit
e3aabdc86c
2 files changed
+4
-4
No files matched your search
@@ -179,7 +179,7 @@ void BinManager::UpdateState() {
|
||||
|
||||
if (HasDirty(SoftDirty::BINNER_RANGE)) {
|
||||
DrawingCoords scissorTL(gstate.getScissorX1(), gstate.getScissorY1());
|
||||
DrawingCoords scissorBR(gstate.getScissorX2(), gstate.getScissorY2());
|
||||
DrawingCoords scissorBR(std::min(gstate.getScissorX2(), gstate.getRegionX2()), std::min(gstate.getScissorY2(), gstate.getRegionY2()));
|
||||
ScreenCoords screenScissorTL = TransformUnit::DrawingToScreen(scissorTL, 0);
|
||||
ScreenCoords screenScissorBR = TransformUnit::DrawingToScreen(scissorBR, 0);
|
||||
|
||||
|
||||
@@ -235,9 +235,9 @@ const SoftwareCommandTableEntry softgpuCommandTable[] = {
|
||||
{ GE_CMD_MAXZ, 0, SoftDirty::PIXEL_BASIC | SoftDirty::PIXEL_CACHED },
|
||||
|
||||
// Region doesn't seem to affect scissor or anything.
|
||||
// TODO: Double check, the registers are always set so they ought to... do something?
|
||||
{ GE_CMD_REGION1 },
|
||||
{ GE_CMD_REGION2 },
|
||||
// As long as REGION1 is zero, REGION2 is effectively another scissor.
|
||||
{ GE_CMD_REGION1, 0, SoftDirty::BINNER_RANGE },
|
||||
{ GE_CMD_REGION2, 0, SoftDirty::BINNER_RANGE },
|
||||
|
||||
// Scissor, only used by the binner.
|
||||
{ GE_CMD_SCISSOR1, 0, SoftDirty::BINNER_RANGE },
|
||||
|
||||
Reference in new issue
Block a user