Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/nvidia-modeset/src/nvkms-evo.c
Original file line number Diff line number Diff line change
Expand Up @@ -4584,10 +4584,19 @@ void nvSetViewPortsEvo(NVDispEvoPtr pDispEvo,
pDevEvo->hal->SetOutputScaler(pDispEvo, head, updateState);

/*
* Specify safe default values of 0 for viewPortPointIn x and y; these
* may be changed when panning out of band of a modeset.
* Specify safe default values for viewPortPointIn x and y; these may be
* changed when panning out of band of a modeset.
*
* Under 2Heads1OR the api head's frame is split horizontally across the
* hardware heads, so each head has to start at its own section of the
* surface: the same offset nvApiHeadSetViewportPointIn() applies when
* panning. Otherwise every merge head scans out from x=0 and the leftmost
* section is repeated across the whole output. mergeHeadSection is 0 when
* 2Heads1OR is not in use, leaving the default of 0,0.
*/
EvoSetViewportPointIn(pDispEvo, head, 0 /* x */, 0 /* y */, updateState);
EvoSetViewportPointIn(pDispEvo, head,
pViewPort->in.width * pHeadState->mergeHeadSection,
0 /* y */, updateState);
}


Expand Down