cso_context: Fix cso_context::sample_mask initial value.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 7 Jan 2014 13:42:23 +0000 (13:42 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 7 Jan 2014 16:04:42 +0000 (16:04 +0000)
The initial value of cso_context::sample_mask_saved is irrelevant as it
will be overwritten with cso_context::sample_mask in
cso_save_sample_mask.  Therefore it is cso_context::sample_mask that
needs to be properly initialized.

This fixes regressions in blits and mipmap generation after adding
support for sample_mask to llvmpipe.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/cso_cache/cso_context.c

index 8d217a4053ef52ee4516f174aeefce99b8ba21e5..cd7afa96479bc8d75a8b5919d87ce4fbc8dcf646 100644 (file)
@@ -269,7 +269,7 @@ struct cso_context *cso_create_context( struct pipe_context *pipe )
                                    ctx);
 
    ctx->pipe = pipe;
-   ctx->sample_mask_saved = ~0;
+   ctx->sample_mask = ~0;
 
    ctx->aux_vertex_buffer_index = 0; /* 0 for now */