Module: Mesa Branch: master Commit: 95bf222603bbbb643a6119e370c6a616ccc5ceaf URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=95bf222603bbbb643a6119e370c6a616ccc5ceaf
Author: José Fonseca <jfons...@vmware.com> Date: Tue Jan 7 13:42:23 2014 +0000 cso_context: Fix cso_context::sample_mask initial value. 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 <srol...@vmware.com> --- src/gallium/auxiliary/cso_cache/cso_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index 8d217a4..cd7afa9 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -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 */ _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit