[Intel-gfx] [PATCH 2/3] uxa: Remove implicit length from BLT command #defines.

Chris Wilson chris at chris-wilson.co.uk
Fri Mar 14 12:42:35 CET 2014


On Thu, Mar 06, 2014 at 01:12:31PM -0800, Kenneth Graunke wrote:
> These command packets grew on Gen8.
> 
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/uxa/i830_reg.h  | 12 ++++++------
>  src/uxa/intel_uxa.c |  4 ++--
>  2 files changed, 8 insertions(+), 8 deletions(-)
> 
> diff --git a/src/uxa/i830_reg.h b/src/uxa/i830_reg.h
> index 93d03cf..d8306bc 100644
> --- a/src/uxa/i830_reg.h
> +++ b/src/uxa/i830_reg.h
> @@ -70,32 +70,32 @@
>  #define COLOR_BLT_WRITE_ALPHA	(1<<21)
>  #define COLOR_BLT_WRITE_RGB	(1<<20)
>  
> -#define XY_COLOR_BLT_CMD		((2<<29)|(0x50<<22)|(0x4))
> +#define XY_COLOR_BLT_CMD		((2<<29)|(0x50<<22))
>  #define XY_COLOR_BLT_WRITE_ALPHA	(1<<21)
>  #define XY_COLOR_BLT_WRITE_RGB		(1<<20)
>  #define XY_COLOR_BLT_TILED		(1<<11)
>  
> -#define XY_SETUP_CLIP_BLT_CMD		((2<<29)|(3<<22)|1)
> +#define XY_SETUP_CLIP_BLT_CMD		((2<<29)|(3<<22))

We use this command in a snb+ w/a; fixed.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list