Displaying 6 results from an estimated 6 matches for "usage_hint".
2011 Dec 07
0
[PATCH] dri2: fix allocation of Z16 depth attachments
...43f..b99893f 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -46,6 +46,8 @@ nouveau_dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment,
ppix->refcnt++;
} else {
+ /* 'format' is just depth */
+ unsigned int depth = NOUVEAU_ALIGN(format, 2);
unsigned int usage_hint = NOUVEAU_CREATE_PIXMAP_TILED;
if (attachment == DRI2BufferDepth ||
@@ -55,7 +57,7 @@ nouveau_dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment,
usage_hint |= NOUVEAU_CREATE_PIXMAP_SCANOUT;
ppix = pScreen->CreatePixmap(pScreen, pDraw->width,
- pDraw->heig...
2009 Dec 11
2
[PATCH 1/2] exa: Pre-G80 tiling support.
...th * cpp;
if (pNv->Architecture >= NV_ARCH_50) {
if (height > 32) tile_mode = 4;
@@ -398,15 +399,22 @@ nouveau_exa_create_pixmap(ScreenPtr pScreen, int width, int height, int depth,
else if (height > 4) tile_mode = 1;
else tile_mode = 0;
- if (usage_hint == NOUVEAU_CREATE_PIXMAP_ZETA)
+ if (usage_hint & NOUVEAU_CREATE_PIXMAP_ZETA)
tile_flags = 0x2800;
else
tile_flags = 0x7000;
height = NOUVEAU_ALIGN(height, 1 << (tile_mode + 2));
- }
+ } else {
+ if (usage_hint & NOUVEAU_CREATE_PIXMAP_TILED) {
+ int pitch_...
2014 Sep 09
1
[PATCH 1/2] accel_common: do not initialise the flags twice
...file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nv_accel_common.c b/src/nv_accel_common.c
index 4484c1c..eebb0ab 100644
--- a/src/nv_accel_common.c
+++ b/src/nv_accel_common.c
@@ -37,7 +37,7 @@ nouveau_allocate_surface(ScrnInfoPtr scrn, int width, int height, int bpp,
Bool tiled = (usage_hint & NOUVEAU_CREATE_PIXMAP_TILED);
Bool shared = FALSE;
union nouveau_bo_config cfg = {};
- int flags = NOUVEAU_BO_MAP | (bpp >= 8 ? NOUVEAU_BO_VRAM : 0);
+ int flags;
int cpp = bpp / 8, ret;
#ifdef NOUVEAU_PIXMAP_SHARING
--
2.1.0
2019 Oct 12
0
[PATCH xf86-video-nouveau] nv4/exa: tiling is unsupported pre-nv10, reduce alignment requirements
...(-)
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;
/* 'format' is just depth (or 0, or maybe it depends on the caller) */
bpp = round_up_pow2(format ? format : pDraw->depth)...
2014 Jul 01
1
[Bug 80738] New: Possible wrong variable used in nouveau_allocate_surface
...eight > 32) cfg.nvc0.tile_mode = 0x030;
else if (height > 16) cfg.nvc0.tile_mode = 0x020;
else if (height > 8) cfg.nvc0.tile_mode = 0x010;
else cfg.nvc0.tile_mode = 0x000;
if (usage_hint & NOUVEAU_CREATE_PIXMAP_ZETA)
cfg.nvc0.memtype = (bpp == 16) ? 0x01 : 0x11;
else
cfg.nvc0.memtype = 0xfe;
height = NOUVEAU_ALIGN(height,
NVC0_TILE_HE...
2015 Mar 14
1
[PATCH ddx] Add support for VRAM-less devices to the ddx
...gt;drawable.height, x, y))
goto memcpy;
diff --git a/src/nv_accel_common.c b/src/nv_accel_common.c
index 4484c1c..e1a8a12 100644
--- a/src/nv_accel_common.c
+++ b/src/nv_accel_common.c
@@ -37,7 +37,7 @@ nouveau_allocate_surface(ScrnInfoPtr scrn, int width, int height, int bpp,
Bool tiled = (usage_hint & NOUVEAU_CREATE_PIXMAP_TILED);
Bool shared = FALSE;
union nouveau_bo_config cfg = {};
- int flags = NOUVEAU_BO_MAP | (bpp >= 8 ? NOUVEAU_BO_VRAM : 0);
+ int flags = NOUVEAU_BO_MAP;
int cpp = bpp / 8, ret;
#ifdef NOUVEAU_PIXMAP_SHARING
@@ -46,7 +46,7 @@ nouveau_allocate_surface(Scrn...