nvfx: fix up after merge
authorKeith Whitwell <keithw@vmware.com>
Mon, 15 Mar 2010 10:27:25 +0000 (10:27 +0000)
committerKeith Whitwell <keithw@vmware.com>
Mon, 15 Mar 2010 10:27:25 +0000 (10:27 +0000)
src/gallium/drivers/nvfx/nvfx_state.c

index 32a81997528ddc2789d7ea7f2bf3f12f0b2ff7fe..ecaa0dcb16a872476825a38d9f7e9627ef093c7a 100644 (file)
@@ -145,18 +145,14 @@ nvfx_set_fragment_sampler_views(struct pipe_context *pipe,
        unsigned unit;
 
        for (unit = 0; unit < nr; unit++) {
-               pipe_sampler_view_reference(&nv30->fragment_sampler_views[unit],
+               pipe_sampler_view_reference(&nvfx->fragment_sampler_views[unit],
                                             views[unit]);
-               pipe_texture_reference((struct pipe_texture **)
-                                      &nvfx->tex_miptree[unit], miptree[unit]);
                nvfx->dirty_samplers |= (1 << unit);
        }
 
        for (unit = nr; unit < nvfx->nr_textures; unit++) {
-               pipe_sampler_view_reference(&nv30->fragment_sampler_views[unit],
+               pipe_sampler_view_reference(&nvfx->fragment_sampler_views[unit],
                                             NULL);
-               pipe_texture_reference((struct pipe_texture **)
-                                      &nvfx->tex_miptree[unit], NULL);
                nvfx->dirty_samplers |= (1 << unit);
        }
 
@@ -166,7 +162,7 @@ nvfx_set_fragment_sampler_views(struct pipe_context *pipe,
 
 
 static struct pipe_sampler_view *
-nv30_create_sampler_view(struct pipe_context *pipe,
+nvfx_create_sampler_view(struct pipe_context *pipe,
                         struct pipe_texture *texture,
                         const struct pipe_sampler_view *templ)
 {
@@ -185,7 +181,7 @@ nv30_create_sampler_view(struct pipe_context *pipe,
 
 
 static void
-nv30_sampler_view_destroy(struct pipe_context *pipe,
+nvfx_sampler_view_destroy(struct pipe_context *pipe,
                          struct pipe_sampler_view *view)
 {
        pipe_texture_reference(&view->texture, NULL);
@@ -614,7 +610,9 @@ nvfx_init_state_functions(struct nvfx_context *nvfx)
        nvfx->pipe.create_sampler_state = nvfx_sampler_state_create;
        nvfx->pipe.bind_fragment_sampler_states = nvfx_sampler_state_bind;
        nvfx->pipe.delete_sampler_state = nvfx_sampler_state_delete;
-       nvfx->pipe.set_fragment_sampler_textures = nvfx_set_sampler_texture;
+       nvfx->pipe.set_fragment_sampler_views = nvfx_set_fragment_sampler_views;
+        nvfx->pipe.create_sampler_view = nvfx_create_sampler_view;
+        nvfx->pipe.sampler_view_destroy = nvfx_sampler_view_destroy;
 
        nvfx->pipe.create_rasterizer_state = nvfx_rasterizer_state_create;
        nvfx->pipe.bind_rasterizer_state = nvfx_rasterizer_state_bind;