diff options
author | Marek Olšák <[email protected]> | 2020-01-30 16:59:39 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-02-10 17:24:09 -0500 |
commit | 1082e6fcb87d723986b640b5c077d05692df3511 (patch) | |
tree | a4b5d85987015a80a9380f1cce55a7d754039e2c /src/gallium/drivers | |
parent | fbb27eebc8cab1a5d70ea67a37de8d18f20a88f0 (diff) |
radeonsi: don't update states for the DCC MSAA bug on GFX6-7
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3646>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3646>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index e3e0ffa64e1..34b903c6fc0 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -618,7 +618,7 @@ static void *si_create_blend_state_mode(struct pipe_context *ctx, blend->blend_enable_4bit |= 0xfu << (i * 4); - if (sctx->family <= CHIP_NAVI14) + if (sctx->chip_class >= GFX8 && sctx->family <= CHIP_NAVI14) blend->dcc_msaa_corruption_4bit |= 0xfu << (i * 4); /* This is only important for formats without alpha. */ @@ -631,7 +631,7 @@ static void *si_create_blend_state_mode(struct pipe_context *ctx, blend->need_src_alpha_4bit |= 0xfu << (i * 4); } - if (sctx->family <= CHIP_NAVI14 && logicop_enable) + if (sctx->chip_class >= GFX8 && sctx->family <= CHIP_NAVI14 && logicop_enable) blend->dcc_msaa_corruption_4bit |= blend->cb_target_enabled_4bit; if (blend->cb_target_mask) { |