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 b50d85655e8e453ab80c35349d419e08d0e104fc..badd2e1c1b7586c6c1219478583119ade5878b8d 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;