mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 14:00:37 +02:00
r600g: call cayman_emit_msaa_sample_locs only when needed
In the case of nr_samples <= 1, that function is (currently) a no-op anyway. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
b3c5df3ca4
commit
7d2ce5258f
1 changed files with 2 additions and 1 deletions
|
|
@ -1654,7 +1654,8 @@ static void evergreen_emit_framebuffer_state(struct r600_context *rctx, struct r
|
|||
EG_S_028A4C_FORCE_EOV_CNTDWN_ENABLE(1) |
|
||||
EG_S_028A4C_FORCE_EOV_REZ_ENABLE(1);
|
||||
|
||||
cayman_emit_msaa_sample_locs(cs, rctx->framebuffer.nr_samples);
|
||||
if (rctx->framebuffer.nr_samples > 1)
|
||||
cayman_emit_msaa_sample_locs(cs, rctx->framebuffer.nr_samples);
|
||||
cayman_emit_msaa_config(cs, rctx->framebuffer.nr_samples,
|
||||
rctx->ps_iter_samples, 0, sc_mode_cntl_1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue