nvfx: rewrite draw code and buffer code
[mesa.git] / src / gallium / drivers / nvfx / nvfx_context.c
index 1980176b23ec0789deb3a5c5ac04776b040e9935..94c854b22b8c07908b89a2a6c89c69d7408d89af 100644 (file)
@@ -76,7 +76,9 @@ nvfx_create(struct pipe_screen *pscreen, void *priv)
        nvfx_init_surface_functions(nvfx);
        nvfx_init_state_functions(nvfx);
        nvfx_init_sampling_functions(nvfx);
+       nvfx_init_vbo_functions(nvfx);
        nvfx_init_resource_functions(&nvfx->pipe);
+       nvfx_init_transfer_functions(&nvfx->pipe);
 
        /* Create, configure, and install fallback swtnl path */
        nvfx->draw = draw_create(&nvfx->pipe);
@@ -89,6 +91,7 @@ nvfx_create(struct pipe_screen *pscreen, void *priv)
        /* set these to that we init them on first validation */
        nvfx->state.scissor_enabled = ~0;
        nvfx->state.stipple_enabled = ~0;
+       nvfx->use_vertex_buffers = -1;
 
        LIST_INITHEAD(&nvfx->render_cache);