Displaying 3 results from an estimated 3 matches for "exa_force_cp".
2019 Oct 13
0
[PATCH xf86-video-nouveau] dri2, present: move in pixmap before getting addresses
...ouveau_dri2_buffer *nvbuf = nouveau_dri2_buffer(front);
+ struct nouveau_bo *pixmap_bo;
+
+ PixmapPtr pixmap;
+ int r;
if (draw->type == DRAWABLE_PIXMAP)
pixmap = (PixmapPtr)draw;
@@ -259,8 +263,16 @@ update_front(DrawablePtr draw, DRI2BufferPtr front)
pixmap->refcnt++;
+ pNv->exa_force_cp = TRUE;
exaMoveInPixmap(pixmap);
- r = nouveau_bo_name_get(nouveau_pixmap_bo(pixmap), &front->name);
+ pNv->exa_force_cp = FALSE;
+ pixmap_bo = nouveau_pixmap_bo(pixmap);
+
+ if (!pixmap_bo)
+ r = -1;
+ else
+ r = nouveau_bo_name_get(pixmap_bo, &front->name);
+
if (r) {
(*...
2010 Jul 29
1
[PATCH] Reflow logic to make it easier to follow
...^= 1;
+ } else {
+ int ret = BadImplementation;
+
+ /* If we're not using the hw overlay, we're rendering into a pixmap
+ * and need to take a couple of additional steps...
+ */
+ PixmapPtr ppix = NVGetDrawablePixmap(pDraw);
/* Ensure pixmap is in offscreen memory */
pNv->exa_force_cp = TRUE;
@@ -1274,69 +1291,48 @@ CPU_copy:
dstBox.y2 -= ppix->screen_y;
}
#endif
- }
-
- if (action_flags & USE_OVERLAY) {
- if (pNv->Architecture == NV_ARCH_04) {
- NV04PutOverlayImage(pScrn, pPriv->video_mem, offset,
- id, dstPitch, &dstBox, 0, 0,
- xb,...
2015 Mar 14
1
[PATCH ddx] Add support for VRAM-less devices to the ddx
With this patch the DDX almost works with GK20A, the missing piece is adding COHERENT mappings to the right places. ;-)
If you specify NOUVEAU_BO_APER the kernel will truncate valid_domains to the domains specified at creation time.
This means that as long as we only specify the correct domain in nouveau_allocate_surface the effect is still the same.
Signed-off-by: Maarten Lankhorst <dev at