[PATCH xserver 2/2] glamor: use the lowercase xnf.*alloc API

Emil Velikov emil.l.velikov at gmail.com
Sun Apr 17 16:24:53 UTC 2016


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---

The current lower/upper case mix of the xnf API feels quite strange:

ati/amdgpu/intel/nouveau... ddx seems to explicitly use the lower case 
xnfalloc as does the xserver (with these two patches). At the same time 
both xserver and the drivers rely on the uppercase xnfprintf ones.

Looks like nasty legacy ... if we only had someone brave enouch to unify 
the whole tree ;-)

-Emil


 glamor/glamor_vbo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glamor/glamor_vbo.c b/glamor/glamor_vbo.c
index b8db009..2799e1b 100644
--- a/glamor/glamor_vbo.c
+++ b/glamor/glamor_vbo.c
@@ -128,7 +128,7 @@ glamor_get_vbo_space(ScreenPtr screen, unsigned size, char **vbo_offset)
         if (glamor_priv->vbo_size < size) {
             glamor_priv->vbo_size = MAX(GLAMOR_VBO_SIZE, size);
             free(glamor_priv->vb);
-            glamor_priv->vb = XNFalloc(glamor_priv->vbo_size);
+            glamor_priv->vb = xnfalloc(glamor_priv->vbo_size);
         }
         *vbo_offset = NULL;
         /* We point to the start of glamor_priv->vb every time, and
-- 
2.8.0



More information about the xorg-devel mailing list