nv50: call util_format_init
authorLuca Barbieri <luca@luca-barbieri.com>
Fri, 2 Apr 2010 00:36:59 +0000 (02:36 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Fri, 2 Apr 2010 00:36:59 +0000 (02:36 +0200)
Needed to fetch static vertex attributes.

src/gallium/drivers/nv50/nv50_context.c

index aa14e17872df2ff1b4df07b3ace7a3d7bf2ef059..0de75a70b98f5d8aa5746b3ebbf23fac6aeb0f61 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "draw/draw_context.h"
 #include "pipe/p_defines.h"
+#include "util/u_format.h"
 
 #include "nv50_context.h"
 #include "nv50_screen.h"
@@ -70,6 +71,8 @@ nv50_create(struct pipe_screen *pscreen, void *priv)
        struct nv50_screen *screen = nv50_screen(pscreen);
        struct nv50_context *nv50;
 
+       util_format_init();
+
        nv50 = CALLOC_STRUCT(nv50_context);
        if (!nv50)
                return NULL;