sna/dri2: Avoid chaining swaps across a mode change
If the pixmap on a drawable changes between swap events, just queue a normal vblank event rather than chaining up. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
2205da0729
commit
46ffdf295d
|
|
@ -2792,9 +2792,8 @@ sna_dri2_immediate_blit(struct sna *sna,
|
|||
get_private(chain->front)->bo->handle, chain->front->name, get_private(chain->front)->bo->active_scanout,
|
||||
get_private(chain->back)->bo->handle, chain->back->name, get_private(chain->back)->bo->active_scanout));
|
||||
|
||||
if (chain->type == SWAP_COMPLETE) {
|
||||
if (chain->type == SWAP_COMPLETE && chain->front == info->front) {
|
||||
assert(chain->draw == info->draw);
|
||||
assert(chain->front == info->front);
|
||||
assert(chain->client == info->client);
|
||||
assert(chain->event_complete == info->event_complete);
|
||||
assert(chain->event_data == info->event_data);
|
||||
|
|
|
|||
Loading…
Reference in New Issue