[Beignet] [PATCH 2/2] GBE: Minor refine uw1grf(nr, subnr).

Yang, Rong R rong.r.yang at intel.com
Mon Sep 21 01:34:16 PDT 2015


Patchset LGTM, pushed, thanks.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Ruiling Song
> Sent: Monday, September 21, 2015 15:40
> To: beignet at lists.freedesktop.org
> Cc: Song, Ruiling
> Subject: [Beignet] [PATCH 2/2] GBE: Minor refine uw1grf(nr, subnr).
> 
> let's just keep things simple.
> 
> Signed-off-by: Ruiling Song <ruiling.song at intel.com>
> ---
>  backend/src/backend/gen_register.hpp | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/backend/src/backend/gen_register.hpp
> b/backend/src/backend/gen_register.hpp
> index db16273..a15fd60 100644
> --- a/backend/src/backend/gen_register.hpp
> +++ b/backend/src/backend/gen_register.hpp
> @@ -995,7 +995,13 @@ namespace gbe
>      }
> 
>      static INLINE GenRegister uw1(uint32_t file, uint32_t nr, uint32_t subnr) {
> -      return offset(retype(vec1(file, nr, 0), GEN_TYPE_UW), 0,
> typeSize(GEN_TYPE_UW)*subnr);
> +      return GenRegister(file,
> +                         nr,
> +                         subnr,
> +                         GEN_TYPE_UW,
> +                         GEN_VERTICAL_STRIDE_0,
> +                         GEN_WIDTH_1,
> +                         GEN_HORIZONTAL_STRIDE_0);
>      }
> 
>      static INLINE GenRegister ub16(uint32_t file, uint32_t nr, uint32_t subnr) {
> --
> 2.3.1
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list