OSDN Git Service

mesa: enable msaa in clear_with_quad if needed
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 29 Oct 2019 18:45:48 +0000 (19:45 +0100)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 31 Oct 2019 22:13:26 +0000 (15:13 -0700)
commitf0104d8fefe9238aed4bb19113c4950ca226e1fd
tree17c8e12f492a07cf5ea4dacd648175e4a3f494cd
parentcb66ea7780fb68b7c19ab8fffa749614cd5da963
mesa: enable msaa in clear_with_quad if needed

If the DrawBuffer sample count is > 1 and msaa is enabled we must also
enable msaa when clearing it.

Fixes: ea5b7de138b ("radeonsi: make gl_SampleMaskIn = 0x1 when MSAA is disabled")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1991

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Witold Baryluk <witold.baryluk@gmail.com>
(cherry picked from commit 8a723282e3f7a312ab0ca3aa9157e5b76ec182af)
src/mesa/state_tracker/st_cb_clear.c