mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 10:00:14 +01:00
panfrost: Don't use PAN_REQ_MSAA in SFBD
We can also generalize a bit to eliminate the state dependence. 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
7b5aa5fbf2
commit
1439f8db12
1 changed files with 6 additions and 5 deletions
|
|
@ -240,11 +240,12 @@ panfrost_sfbd_fragment(struct panfrost_batch *batch, bool has_draws)
|
|||
if (batch->key.zsbuf)
|
||||
panfrost_sfbd_set_zsbuf(¶ms, batch->key.zsbuf);
|
||||
|
||||
if (batch->requirements & PAN_REQ_MSAA) {
|
||||
/* Only 4x MSAA supported right now. */
|
||||
params.sample_count = 4;
|
||||
params.msaa = MALI_MSAA_MULTIPLE;
|
||||
}
|
||||
params.sample_count = util_framebuffer_get_num_samples(&batch->key);
|
||||
|
||||
/* XXX: different behaviour from MFBD and probably wrong... */
|
||||
params.msaa = (params.sample_count > 1) ?
|
||||
MALI_MSAA_MULTIPLE :
|
||||
MALI_MSAA_SINGLE;
|
||||
}
|
||||
panfrost_emit_sfdb_tiler(batch, sfbd, has_draws);
|
||||
pan_section_pack(sfbd, SINGLE_TARGET_FRAMEBUFFER, PADDING_2, padding) {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue