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/svga | |
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/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_pipe_clear.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_clear.c b/src/gallium/drivers/svga/svga_pipe_clear.c index d1287178c56..6aa74d5b69a 100644 --- a/src/gallium/drivers/svga/svga_pipe_clear.c +++ b/src/gallium/drivers/svga/svga_pipe_clear.c @@ -77,7 +77,8 @@ clear_buffers_with_quad(struct svga_context *svga, fb->width, fb->height, 1, /* num_layers */ clear_buffers, color, - depth, stencil); + depth, stencil, + util_framebuffer_get_num_samples(fb) > 1); } |