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:

committed by
Marek Olšák

parent
d811446e6c
commit
e9cf8c1d30
@@ -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 ||
|
||||
|
Reference in New Issue
Block a user