[Mesa-dev] [PATCH] radeonsi: fix the raster config setup for 1 RB iceland chips

Marek Olšák maraeo at gmail.com
Wed Jun 1 13:55:37 UTC 2016


Cc: 11.1 11.2 12.0 <mesa-stable at lists.freedesktop.org>

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

Marek

On Wed, Jun 1, 2016 at 3:17 PM, Alex Deucher <alexdeucher at gmail.com> wrote:
> I didn't realize there were 1 and 2 RB variants when this code
> was originally added.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> Cc: <mesa-stable at lists.freedesktop.org>
> ---
>  src/gallium/drivers/radeonsi/si_state.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
> index 85d8509..a5e3956 100644
> --- a/src/gallium/drivers/radeonsi/si_state.c
> +++ b/src/gallium/drivers/radeonsi/si_state.c
> @@ -3682,7 +3682,10 @@ static void si_init_config(struct si_context *sctx)
>                 raster_config_1 = 0x0000002a;
>                 break;
>         case CHIP_ICELAND:
> -               raster_config = 0x00000002;
> +               if (num_rb == 1)
> +                       raster_config = 0x00000000;
> +               else
> +                       raster_config = 0x00000002;
>                 raster_config_1 = 0x00000000;
>                 break;
>         case CHIP_CARRIZO:
> --
> 2.5.5
>
> _______________________________________________
> 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