pvr: Fix incorrect samples to cr_isp_aa_mode conversion.

This commit fixes the use of 'case 3' where 'case 4' should have
been.

Reported-by: Matt Coster <matt.coster@imgtec.com>
Signed-off-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16883>
This commit is contained in:
Karmjit Mahil 2022-05-30 11:30:07 +01:00 committed by Marge Bot
parent 61db3154b4
commit 721fb18a38
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@
CR
******************************************************************************/
/* TODO: Use VkSampleCountFlagBits as param type? */
/* clang-format off */
static inline enum PVRX(CR_ISP_AA_MODE_TYPE)
pvr_cr_isp_aa_mode_type(uint32_t samples)
@ -45,7 +46,7 @@ pvr_cr_isp_aa_mode_type(uint32_t samples)
return PVRX(CR_ISP_AA_MODE_TYPE_AA_NONE);
case 2:
return PVRX(CR_ISP_AA_MODE_TYPE_AA_2X);
case 3:
case 4:
return PVRX(CR_ISP_AA_MODE_TYPE_AA_4X);
case 8:
return PVRX(CR_ISP_AA_MODE_TYPE_AA_8X);