[Mesa-dev] [PATCH] winsys/radeon: Compute is_displayable in surf_drm_to_winsys
Marek Olšák
maraeo at gmail.com
Fri Jan 26 21:23:39 UTC 2018
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Fri, Jan 26, 2018 at 6:33 PM, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> It was always 0, breaking (at least) DRI3 with Xwayland.
>
> Bugzilla: https://bugs.freedesktop.org/104306
> Fixes: 5f2073be3282 ("ac/surface: add ac_surface::is_displayable")
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
> src/gallium/winsys/radeon/drm/radeon_drm_surface.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c
> index 5ee01ff90f9..77fb7757c20 100644
> --- a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c
> +++ b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c
> @@ -215,6 +215,9 @@ static void surf_drm_to_winsys(struct radeon_drm_winsys *ws,
> }
>
> set_micro_tile_mode(surf_ws, &ws->info);
> + surf_ws->is_displayable = surf_ws->is_linear ||
> + surf_ws->micro_tile_mode == RADEON_MICRO_MODE_DISPLAY ||
> + surf_ws->micro_tile_mode == RADEON_MICRO_MODE_ROTATED;
> }
>
> static int radeon_winsys_surface_init(struct radeon_winsys *rws,
> --
> 2.15.1
>
> _______________________________________________
> 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