diff options
author | Ilia Mirkin <[email protected]> | 2014-01-12 15:01:29 -0500 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2014-01-16 19:26:05 +0100 |
commit | dd687fb8d090f08d09ac5e350a92f38ded837788 (patch) | |
tree | d2cb85951d2f4ee33f8831369dafbb9e3d7430ce /src/gallium/drivers/nouveau/nv50/nv50_state.c | |
parent | 188383591d6d657b557a5407ee9b7b993f79c53b (diff) |
nv50, nvc0: initialize ctx->sample_mask to ~0
Commit 95bf222603b (cso_context: Fix cso_context::sample_mask initial
value.) fixed the cso sample mask to be initialized to ~0. The cso code
is also careful not to needlessly call set_sample_mask, so we ended up
with the ctx->sample_mask never being set. This broke a number of
EXT_framebuffer_multisample piglit tests.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv50/nv50_state.c')
-rw-r--r-- | src/gallium/drivers/nouveau/nv50/nv50_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_state.c b/src/gallium/drivers/nouveau/nv50/nv50_state.c index b6a180ef22f..87dd07f9c01 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_state.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_state.c @@ -1123,4 +1123,6 @@ nv50_init_state_functions(struct nv50_context *nv50) pipe->create_stream_output_target = nv50_so_target_create; pipe->stream_output_target_destroy = nv50_so_target_destroy; pipe->set_stream_output_targets = nv50_set_stream_output_targets; + + nv50->sample_mask = ~0; } |