diff options
author | Ilia Mirkin <[email protected]> | 2014-03-30 18:25:40 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-04-26 11:53:24 -0400 |
commit | f715a0a39a0f7f19443e7721ae792878ba504eed (patch) | |
tree | 596a2c6b6570f921aec2fa915e6c7bc7b7d7c18e /src/gallium/drivers/nouveau/nv50/nv50_state.c | |
parent | c5d822dad902b19f06c9be3c6863a51e1881ec5b (diff) |
nv50: add support for PIPE_CAP_SAMPLE_SHADING
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 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_state.c b/src/gallium/drivers/nouveau/nv50/nv50_state.c index 647c01f1973..d0bc7ff1a2a 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_state.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_state.c @@ -864,6 +864,16 @@ nv50_set_sample_mask(struct pipe_context *pipe, unsigned sample_mask) nv50->dirty |= NV50_NEW_SAMPLE_MASK; } +static void +nv50_set_min_samples(struct pipe_context *pipe, unsigned min_samples) +{ + struct nv50_context *nv50 = nv50_context(pipe); + + if (nv50->min_samples != min_samples) { + nv50->min_samples = min_samples; + nv50->dirty |= NV50_NEW_MIN_SAMPLES; + } +} static void nv50_set_framebuffer_state(struct pipe_context *pipe, @@ -1135,6 +1145,7 @@ nv50_init_state_functions(struct nv50_context *nv50) pipe->set_stencil_ref = nv50_set_stencil_ref; pipe->set_clip_state = nv50_set_clip_state; pipe->set_sample_mask = nv50_set_sample_mask; + pipe->set_min_samples = nv50_set_min_samples; pipe->set_constant_buffer = nv50_set_constant_buffer; pipe->set_framebuffer_state = nv50_set_framebuffer_state; pipe->set_polygon_stipple = nv50_set_polygon_stipple; @@ -1153,4 +1164,5 @@ nv50_init_state_functions(struct nv50_context *nv50) pipe->set_stream_output_targets = nv50_set_stream_output_targets; nv50->sample_mask = ~0; + nv50->min_samples = 1; } |