u_blitter: add a msaa parameter to util_blitter_clear

Fixes: ea5b7de138 ("radeonsi: make gl_SampleMaskIn = 0x1 when MSAA is disabled")

Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2019-07-22 16:14:20 +02:00
committed by Marek Olšák
parent d811446e6c
commit e9cf8c1d30
8 changed files with 22 additions and 13 deletions

View File

@@ -366,7 +366,8 @@ static void r300_clear(struct pipe_context* pipe,
/* Clear using the blitter. */
r300_blitter_begin(r300, R300_CLEAR);
util_blitter_clear(r300->blitter, width, height, 1,
buffers, color, depth, stencil);
buffers, color, depth, stencil,
util_framebuffer_get_num_samples(fb) > 1);
r300_blitter_end(r300);
} else if (r300->zmask_clear.dirty ||
r300->hiz_clear.dirty ||