[Mesa-dev] [PATCH] winsys/radeon: don't call surface_best for FMASK

Edward O'Callaghan funfunctor at folklore1984.net
Sat Nov 5 03:14:40 UTC 2016


Acked-by: Edward O'Callaghan <funfunctor at folklore1984.net>

On 11/05/2016 03:35 AM, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98518
> ---
>  src/gallium/winsys/radeon/drm/radeon_drm_surface.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c
> index 8324d28..4d2acef 100644
> --- a/src/gallium/winsys/radeon/drm/radeon_drm_surface.c
> +++ b/src/gallium/winsys/radeon/drm/radeon_drm_surface.c
> @@ -224,21 +224,21 @@ static int radeon_winsys_surface_init(struct radeon_winsys *rws,
>                                        unsigned flags, unsigned bpe,
>                                        enum radeon_surf_mode mode,
>                                        struct radeon_surf *surf_ws)
>  {
>      struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)rws;
>      struct radeon_surface surf_drm;
>      int r;
>  
>      surf_winsys_to_drm(&surf_drm, tex, flags, bpe, mode, surf_ws);
>  
> -    if (!(flags & RADEON_SURF_IMPORTED)) {
> +    if (!(flags & (RADEON_SURF_IMPORTED | RADEON_SURF_FMASK))) {
>         r = radeon_surface_best(ws->surf_man, &surf_drm);
>         if (r)
>            return r;
>      }
>  
>      r = radeon_surface_init(ws->surf_man, &surf_drm);
>      if (r)
>          return r;
>  
>      surf_drm_to_winsys(ws, surf_ws, &surf_drm);
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161105/e319ed5b/attachment.sig>


More information about the mesa-dev mailing list