[PATCH xserver] glamor: unifdef XORG_VERSION_CURRENT

Alex Deucher alexdeucher at gmail.com
Mon Feb 26 20:28:15 UTC 2018


On Mon, Feb 26, 2018 at 3:26 PM, Adam Jackson <ajax at redhat.com> wrote:
> This is always true now that glamor is in-tree.
>
> Signed-off-by: Adam Jackson <ajax at redhat.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  glamor/glamor_utils.h | 4 ----
>  1 file changed, 4 deletions(-)
>
> diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h
> index 7597b92dc..84371f769 100644
> --- a/glamor/glamor_utils.h
> +++ b/glamor/glamor_utils.h
> @@ -601,10 +601,8 @@ format_for_depth(int depth)
>      default:
>      case 24:
>          return PICT_x8r8g8b8;
> -#if XORG_VERSION_CURRENT >= 10699900
>      case 30:
>          return PICT_x2r10g10b10;
> -#endif
>      case 32:
>          return PICT_a8r8g8b8;
>      }
> @@ -669,7 +667,6 @@ glamor_get_rgba_from_pixel(CARD32 pixel,
>          gshift = rbits;
>          bshift = gshift + gbits;
>          ashift = bshift + bbits;
> -#if XORG_VERSION_CURRENT >= 10699900
>      }
>      else if (PICT_FORMAT_TYPE(format) == PICT_TYPE_BGRA) {
>          ashift = 0;
> @@ -678,7 +675,6 @@ glamor_get_rgba_from_pixel(CARD32 pixel,
>              rshift = PICT_FORMAT_BPP(format) - (rbits + gbits + bbits);
>          gshift = rshift + rbits;
>          bshift = gshift + gbits;
> -#endif
>      }
>      else {
>          return FALSE;
> --
> 2.14.3
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list