OSDN Git Service

gallium/noop: fix sampler views
authorMarek Olšák <marek.olsak@amd.com>
Thu, 8 Jun 2017 00:26:28 +0000 (02:26 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 12 Jun 2017 16:24:37 +0000 (18:24 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/noop/noop_state.c

index 46d99ab..80cfae8 100644 (file)
@@ -76,7 +76,10 @@ static struct pipe_sampler_view *noop_create_sampler_view(struct pipe_context *c
 
    if (!sampler_view)
       return NULL;
+
    /* initialize base object */
+   *sampler_view = *state;
+   sampler_view->texture = NULL;
    pipe_resource_reference(&sampler_view->texture, texture);
    pipe_reference_init(&sampler_view->reference, 1);
    sampler_view->context = ctx;