[Beignet] [PATCH 1/2] GBE: align the fields in union ImageInfoKey.

Zhigang Gong zhigang.gong at linux.intel.com
Sun Jul 27 23:47:20 PDT 2014


Both patches LGTM, pushed, thanks.

On Mon, Jul 28, 2014 at 09:19:29AM +0800, Ruiling Song wrote:
> To avoid possible garbage data.
> 
> Signed-off-by: Ruiling Song <ruiling.song at intel.com>
> ---
>  backend/src/ir/image.hpp       |    2 +-
>  backend/src/ir/instruction.hpp |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/backend/src/ir/image.hpp b/backend/src/ir/image.hpp
> index a79e0a3..82fee56 100644
> --- a/backend/src/ir/image.hpp
> +++ b/backend/src/ir/image.hpp
> @@ -93,7 +93,7 @@ namespace ir {
>    private:
>      map<Register, struct ImageInfo *> regMap;
>      map<uint32_t, struct ImageInfo *> indexMap;
> -    map<uint32_t, Register> infoRegMap;
> +    map<uint16_t, Register> infoRegMap;
>      GBE_CLASS(ImageSet);
>    };
>  } /* namespace ir */
> diff --git a/backend/src/ir/instruction.hpp b/backend/src/ir/instruction.hpp
> index 5f0cb05..ada780f 100644
> --- a/backend/src/ir/instruction.hpp
> +++ b/backend/src/ir/instruction.hpp
> @@ -375,7 +375,7 @@ namespace ir {
>       uint8_t index; /*! the allocated image index */
>       uint8_t  type;  /*! the information type */
>      };
> -    uint32_t data;
> +    uint16_t data;
>    } ImageInfoKey;
>  
>    /*! Get image information */
> -- 
> 1.7.10.4
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list