[Mesa-dev] [PATCH] winsys/radeon: fix a wrong NUM_TILE_PIPES value from the kernel
Nick Sarnie
commendsarnex at gmail.com
Sun Feb 7 20:11:32 UTC 2016
Hi,
This fixes the bug for me.
Tested-by: Nick Sarnie <commendsarnex at gmail.com>
Thanks
On Sun, Feb 7, 2016 at 2:25 PM, Marek Olšák <maraeo at gmail.com> wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94019
> ---
> src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
> b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
> index 35dc7e6..49c310c 100644
> --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
> +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
> @@ -405,6 +405,12 @@ static boolean do_winsys_init(struct
> radeon_drm_winsys *ws)
> radeon_get_drm_value(ws->fd, RADEON_INFO_NUM_TILE_PIPES, NULL,
> &ws->info.num_tile_pipes);
>
> + /* The kernel returns 12 for some cards for an unknown reason.
> + * I thought this was supposed to be a power of two.
> + */
> + if (ws->gen == DRV_SI && ws->info.num_tile_pipes == 12)
> + ws->info.num_tile_pipes = 8;
> +
> if (radeon_get_drm_value(ws->fd, RADEON_INFO_BACKEND_MAP,
> NULL,
> &ws->info.r600_gb_backend_map))
> ws->info.r600_gb_backend_map_valid = TRUE;
> --
> 2.1.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160207/2f9648a1/attachment.html>
More information about the mesa-dev
mailing list