diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2019-07-22 16:14:20 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-23 14:42:20 -0400 |
commit | e9cf8c1d3010e9eada5a7921239ad7895f249b5c (patch) | |
tree | f1fc5d01e6d21a64650af3cd9e2bae5ae5dc36de /src/gallium/drivers/radeonsi | |
parent | d811446e6cf0a3e9ad0cc4f5898db33031698c32 (diff) |
u_blitter: add a msaa parameter to util_blitter_clear
Fixes: ea5b7de138b ("radeonsi: make gl_SampleMaskIn = 0x1 when MSAA is disabled")
Tested-by: Michel Dänzer <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_clear.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_clear.c b/src/gallium/drivers/radeonsi/si_clear.c index 0e8808b6c13..a83f65c6f1b 100644 --- a/src/gallium/drivers/radeonsi/si_clear.c +++ b/src/gallium/drivers/radeonsi/si_clear.c @@ -663,7 +663,8 @@ static void si_clear(struct pipe_context *ctx, unsigned buffers, si_blitter_begin(sctx, SI_CLEAR); util_blitter_clear(sctx->blitter, fb->width, fb->height, util_framebuffer_get_num_layers(fb), - buffers, color, depth, stencil); + buffers, color, depth, stencil, + sctx->framebuffer.nr_samples > 1); si_blitter_end(sctx); if (sctx->db_depth_clear) { |