galahad: Point to the galahad objects from the galahad sampler view.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 6 Jul 2012 17:30:25 +0000 (18:30 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 6 Jul 2012 17:35:32 +0000 (18:35 +0100)
And not the wraped driver's objects.

src/gallium/drivers/galahad/glhd_objects.c

index b50d856..badd2e1 100644 (file)
@@ -127,8 +127,8 @@ galahad_sampler_view_create(struct galahad_context *glhd_context,
    glhd_view->base = *view;
    glhd_view->base.reference.count = 1;
    glhd_view->base.texture = NULL;
-   pipe_resource_reference(&glhd_view->base.texture, glhd_resource->resource);
-   glhd_view->base.context = glhd_context->pipe;
+   pipe_resource_reference(&glhd_view->base.texture, &glhd_resource->base);
+   glhd_view->base.context = &glhd_context->base;
    glhd_view->sampler_view = view;
 
    return &glhd_view->base;