Displaying 1 result from an estimated 1 matches for "round_up_pow2".
2019 Oct 12
0
[PATCH xf86-video-nouveau] nv4/exa: tiling is unsupported pre-nv10, reduce alignment requirements
...} 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);
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 42eb9db..a63674c 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1082,7 +1082,8 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
pNv->wfb_enabled = xf86ReturnOptValBool(
pNv->Options, OPTION_WFB...