nvfx: so->RING_3D: scissor
[mesa.git] / src / gallium / drivers / nvfx / nvfx_context.c
index fc3cbdb558f5aa2f51f096b109bd74928d4217c7..eabf9ae7a0733dc90ecc3a70758a45bd0f8ab86d 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "nvfx_context.h"
 #include "nvfx_screen.h"
+#include "nvfx_resource.h"
 
 static void
 nvfx_flush(struct pipe_context *pipe, unsigned flags,
@@ -65,18 +66,14 @@ nvfx_create(struct pipe_screen *pscreen, void *priv)
        nvfx->pipe.clear = nvfx_clear;
        nvfx->pipe.flush = nvfx_flush;
 
-       nvfx->pipe.is_texture_referenced = nouveau_is_texture_referenced;
-       nvfx->pipe.is_buffer_referenced = nouveau_is_buffer_referenced;
-
        screen->base.channel->user_private = nvfx;
-       screen->base.channel->flush_notify = nvfx_state_flush_notify;
 
        nvfx->is_nv4x = screen->is_nv4x;
 
        nvfx_init_query_functions(nvfx);
        nvfx_init_surface_functions(nvfx);
        nvfx_init_state_functions(nvfx);
-       nvfx_init_transfer_functions(nvfx);
+       nvfx_init_resource_functions(&nvfx->pipe);
 
        /* Create, configure, and install fallback swtnl path */
        nvfx->draw = draw_create();
@@ -86,5 +83,7 @@ nvfx_create(struct pipe_screen *pscreen, void *priv)
        draw_enable_point_sprites(nvfx->draw, FALSE);
        draw_set_rasterize_stage(nvfx->draw, nvfx_draw_render_stage(nvfx));
 
+       /* set these to that we init them on first validation */
+       nvfx->state.scissor_enabled = ~0;
        return &nvfx->pipe;
 }