Displaying 3 results from an estimated 3 matches for "nouveau_dri2_create_buffer2".
Did you mean:
nouveau_dri2_create_buffer
2019 Jan 21
5
[PATCH xf86-video-nouveau 0/4] Compiler warnings series
A short series of compiler visibility warning fixes that I prepared whilst
trialing improvements to xf86-video-nouveau's use of the core xorg-server
utility macros.
Rhys Kidd (4):
wfb: Remove declaration for undefined function nouveau_wfb_init()
dri2: Mark local create/destroy buffer and copy region functions as
static
xv: Mark local NVSetupTexturedVideo function as static
2019 Oct 12
0
[PATCH xf86-video-nouveau] nv4/exa: tiling is unsupported pre-nv10, reduce alignment requirements
...z <currojerez at riseup.net>
---
src/nouveau_dri2.c | 5 ++++-
src/nv_driver.c | 3 ++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index 3d53785..ce0a573 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -62,7 +62,10 @@ nouveau_dri2_create_buffer2(ScreenPtr pScreen, DrawablePtr pDraw, unsigned int a
ppix->refcnt++;
} else {
int bpp;
- unsigned int usage_hint = NOUVEAU_CREATE_PIXMAP_TILED;
+ unsigned int usage_hint = 0;
+
+ if (pNv->Architecture >= NV_ARCH_10)
+ usage_hint |= NOUVEAU_CREATE_PIXMAP_TILED;
/* 'fo...
2013 Jul 22
0
[RFC PATCH] Support running nested in a Mir compositor
...@ -804,6 +817,11 @@ nouveau_dri2_init(ScreenPtr pScreen)
dri2.GetParam = NULL;
#endif
+#if DRI2INFOREC_VERSION >= 8 && defined(XMIR)
+ dri2.version = 8;
+ dri2.AuthMagic2 = nouveau_dri2_auth_magic;
+#endif
+
#if DRI2INFOREC_VERSION >= 9
dri2.version = 9;
dri2.CreateBuffer2 = nouveau_dri2_create_buffer2;
diff --git a/src/nv_driver.c b/src/nv_driver.c
index b83b822..99bd735 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -226,6 +226,8 @@ NVDriverFunc(ScrnInfoPtr scrn, xorgDriverFuncOp op, void *data)
case GET_REQUIRED_HW_INTERFACES:
flag = (CARD32 *)data;
(*flag) = 0;
+ if (...