GENC is indicate the binary type, so use the first byte of GEN binary
as binary version, if mismatch, output a warning.
Signed-off-by: Yang Rong
---
backend/src/backend/gen_program.cpp | 24 +++-
backend/src/gbe_bin_generater.cpp | 8
src/cl_program.c
>};
> -
> +#define GEN_BINARY_VERSION 1
>static const unsigned char
> gen_binary_header[GBHI_MAX][GEN_BINARY_HEADER_LENGTH]= \
> - {{0, 'G','E', 'N', 'C', 'B',
> 'Y', 'T'},
> - {0, 'G','E', 'N', 'C',
Ok, I will push this patch first, and post a refine patch.
> -Original Message-
> From: Song, Ruiling
> Sent: Wednesday, June 22, 2016 10:31
> To: Yang, Rong R ; beignet@lists.freedesktop.org
> Cc: Yang, Rong R
> Subject: RE: [Beignet] [PATCH 2/2] GBE: warning w