[Mesa-dev] [PATCH] radeon: Change AA sample locations for EG+

Marek Olšák maraeo at gmail.com
Tue Apr 5 13:13:49 UTC 2016


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

EG 8x MSAA seems different by mistake.

Marek

On Sun, Apr 3, 2016 at 10:39 PM, Axel Davy <axel.davy at ens.fr> wrote:
> This sets the AA location to the d3d11
> spec.
> EG/NI 8X MSAA is left as is. Not sure
> why it was set different to Cayman, so
> let it as is.
>
> Signed-off-by: Axel Davy <axel.davy at ens.fr>
> ---
>  src/gallium/drivers/radeon/cayman_msaa.c | 68 ++++++++++++++++----------------
>  1 file changed, 34 insertions(+), 34 deletions(-)
>
> diff --git a/src/gallium/drivers/radeon/cayman_msaa.c b/src/gallium/drivers/radeon/cayman_msaa.c
> index 81f4112..9412e89 100644
> --- a/src/gallium/drivers/radeon/cayman_msaa.c
> +++ b/src/gallium/drivers/radeon/cayman_msaa.c
> @@ -27,54 +27,54 @@
>  #include "r600_cs.h"
>
>  /* 2xMSAA
> - * There are two locations (-4, 4), (4, -4). */
> + * There are two locations (4, 4), (-4, -4). */
>  const uint32_t eg_sample_locs_2x[4] = {
> -       FILL_SREG(-4, 4, 4, -4, -4, 4, 4, -4),
> -       FILL_SREG(-4, 4, 4, -4, -4, 4, 4, -4),
> -       FILL_SREG(-4, 4, 4, -4, -4, 4, 4, -4),
> -       FILL_SREG(-4, 4, 4, -4, -4, 4, 4, -4),
> +       FILL_SREG(4, 4, -4, -4, 4, 4, -4, -4),
> +       FILL_SREG(4, 4, -4, -4, 4, 4, -4, -4),
> +       FILL_SREG(4, 4, -4, -4, 4, 4, -4, -4),
> +       FILL_SREG(4, 4, -4, -4, 4, 4, -4, -4),
>  };
>  const unsigned eg_max_dist_2x = 4;
>  /* 4xMSAA
> - * There are 4 locations: (-2, -2), (2, 2), (-6, 6), (6, -6). */
> + * There are 4 locations: (-2, 6), (6, -2), (-6, 2), (2, 6). */
>  const uint32_t eg_sample_locs_4x[4] = {
> -       FILL_SREG(-2, -2, 2, 2, -6, 6, 6, -6),
> -       FILL_SREG(-2, -2, 2, 2, -6, 6, 6, -6),
> -       FILL_SREG(-2, -2, 2, 2, -6, 6, 6, -6),
> -       FILL_SREG(-2, -2, 2, 2, -6, 6, 6, -6),
> +       FILL_SREG(-2, -6, 6, -2, -6, 2, 2, 6),
> +       FILL_SREG(-2, -6, 6, -2, -6, 2, 2, 6),
> +       FILL_SREG(-2, -6, 6, -2, -6, 2, 2, 6),
> +       FILL_SREG(-2, -6, 6, -2, -6, 2, 2, 6),
>  };
>  const unsigned eg_max_dist_4x = 6;
>
>  /* Cayman 8xMSAA */
>  static const uint32_t cm_sample_locs_8x[] = {
> -       FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
> -       FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
> -       FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
> -       FILL_SREG(-2, -5, 3, -4, -1, 5, -6, -2),
> -       FILL_SREG( 6,  0, 0,  0, -5, 3,  4,  4),
> -       FILL_SREG( 6,  0, 0,  0, -5, 3,  4,  4),
> -       FILL_SREG( 6,  0, 0,  0, -5, 3,  4,  4),
> -       FILL_SREG( 6,  0, 0,  0, -5, 3,  4,  4),
> +       FILL_SREG( 1, -3, -1,  3, 5,  1, -3, -5),
> +       FILL_SREG( 1, -3, -1,  3, 5,  1, -3, -5),
> +       FILL_SREG( 1, -3, -1,  3, 5,  1, -3, -5),
> +       FILL_SREG( 1, -3, -1,  3, 5,  1, -3, -5),
> +       FILL_SREG(-5,  5, -7, -1, 3,  7,  7, -7),
> +       FILL_SREG(-5,  5, -7, -1, 3,  7,  7, -7),
> +       FILL_SREG(-5,  5, -7, -1, 3,  7,  7, -7),
> +       FILL_SREG(-5,  5, -7, -1, 3,  7,  7, -7),
>  };
>  static const unsigned cm_max_dist_8x = 8;
>  /* Cayman 16xMSAA */
>  static const uint32_t cm_sample_locs_16x[] = {
> -       FILL_SREG(-7, -3, 7, 3, 1, -5, -5, 5),
> -       FILL_SREG(-7, -3, 7, 3, 1, -5, -5, 5),
> -       FILL_SREG(-7, -3, 7, 3, 1, -5, -5, 5),
> -       FILL_SREG(-7, -3, 7, 3, 1, -5, -5, 5),
> -       FILL_SREG(-3, -7, 3, 7, 5, -1, -1, 1),
> -       FILL_SREG(-3, -7, 3, 7, 5, -1, -1, 1),
> -       FILL_SREG(-3, -7, 3, 7, 5, -1, -1, 1),
> -       FILL_SREG(-3, -7, 3, 7, 5, -1, -1, 1),
> -       FILL_SREG(-8, -6, 4, 2, 2, -8, -2, 6),
> -       FILL_SREG(-8, -6, 4, 2, 2, -8, -2, 6),
> -       FILL_SREG(-8, -6, 4, 2, 2, -8, -2, 6),
> -       FILL_SREG(-8, -6, 4, 2, 2, -8, -2, 6),
> -       FILL_SREG(-4, -2, 0, 4, 6, -4, -6, 0),
> -       FILL_SREG(-4, -2, 0, 4, 6, -4, -6, 0),
> -       FILL_SREG(-4, -2, 0, 4, 6, -4, -6, 0),
> -       FILL_SREG(-4, -2, 0, 4, 6, -4, -6, 0),
> +       FILL_SREG( 1,  1, -1, -3, -3,  2,  4, -1),
> +       FILL_SREG( 1,  1, -1, -3, -3,  2,  4, -1),
> +       FILL_SREG( 1,  1, -1, -3, -3,  2,  4, -1),
> +       FILL_SREG( 1,  1, -1, -3, -3,  2,  4, -1),
> +       FILL_SREG(-5, -2,  2,  5,  5,  3,  3, -5),
> +       FILL_SREG(-5, -2,  2,  5,  5,  3,  3, -5),
> +       FILL_SREG(-5, -2,  2,  5,  5,  3,  3, -5),
> +       FILL_SREG(-5, -2,  2,  5,  5,  3,  3, -5),
> +       FILL_SREG(-2,  6,  0, -7, -4, -6, -6,  4),
> +       FILL_SREG(-2,  6,  0, -7, -4, -6, -6,  4),
> +       FILL_SREG(-2,  6,  0, -7, -4, -6, -6,  4),
> +       FILL_SREG(-2,  6,  0, -7, -4, -6, -6,  4),
> +       FILL_SREG(-8,  0,  7, -4,  6,  7, -7, -8),
> +       FILL_SREG(-8,  0,  7, -4,  6,  7, -7, -8),
> +       FILL_SREG(-8,  0,  7, -4,  6,  7, -7, -8),
> +       FILL_SREG(-8,  0,  7, -4,  6,  7, -7, -8),
>  };
>  static const unsigned cm_max_dist_16x = 8;
>
> --
> 2.7.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list