Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

kms: clear new fb to black on fb resize

  • Loading branch information...
commit 98ee2105dbd8685e59c1967a587fccb6135743ac 1 parent 8378443
Ben Skeggs authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/drmmode_display.c
View
11 src/drmmode_display.c
@@ -1124,6 +1124,17 @@ drmmode_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height)
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 9
scrn->pixmapPrivate.ptr = ppix->devPrivate.ptr;
#endif
+
+ if (!pNv->NoAccel) {
+ nouveau_bo_unmap(pNv->scanout);
+ pNv->EXADriverPtr->PrepareSolid(ppix, GXcopy, ~0, 0);
+ pNv->EXADriverPtr->Solid(ppix, 0, 0, width, height);
+ pNv->EXADriverPtr->DoneSolid(ppix);
+ nouveau_bo_map(pNv->scanout, NOUVEAU_BO_RDWR);
+ } else {
+ memset(pNv->scanout->map, 0x00, pNv->scanout->size);
+ }
+
nouveau_bo_unmap(pNv->scanout);
for (i = 0; i < xf86_config->num_crtc; i++) {
Please sign in to comment.
Something went wrong with that request. Please try again.