mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 14:10:09 +01:00
panfrost: Generalize MSAA handling
This uses the framebuffer MSAA state directly and will generalize to MSAA 8x/16x when somebody gets around to it. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8774>
This commit is contained in:
parent
bea7839c1e
commit
ccce5b922f
1 changed files with 2 additions and 5 deletions
|
|
@ -628,11 +628,8 @@ panfrost_mfbd_fragment(struct panfrost_batch *batch, bool has_draws)
|
|||
|
||||
params.color_buffer_allocation = internal_cbuf_size;
|
||||
|
||||
if (batch->requirements & PAN_REQ_MSAA) {
|
||||
/* MSAA 4x */
|
||||
params.sample_count = 4;
|
||||
params.sample_pattern = MALI_SAMPLE_PATTERN_ROTATED_4X_GRID;
|
||||
}
|
||||
params.sample_count = util_framebuffer_get_num_samples(&batch->key);
|
||||
params.sample_pattern = panfrost_sample_pattern(params.sample_count);
|
||||
|
||||
if (batch->key.zsbuf &&
|
||||
((batch->clear | batch->draws) & PIPE_CLEAR_DEPTHSTENCIL)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue