From 412668464cf9505629eac20001701af3402dc6e8 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 4 May 2012 17:55:10 +0200 Subject: uxa: set "Shader Channel Select" fields in surface state for Haswell For normal behaviour, each Shader Channel Select should be set to the value indicating that same channel. i.e. Shader Channel Select Red is set to SCS_RED, Shader Channel Select Green is set to SCS_GREEN, etc. Signed-off-by: Gwenole Beauchesne Reviewed-by: Kenneth Graunke --- src/brw_defines.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/brw_defines.h') diff --git a/src/brw_defines.h b/src/brw_defines.h index 0df2491c..e580a8f4 100644 --- a/src/brw_defines.h +++ b/src/brw_defines.h @@ -469,6 +469,13 @@ #define BRW_BORDER_COLOR_MODE_DEFAULT 0 #define BRW_BORDER_COLOR_MODE_LEGACY 1 +#define HSW_SCS_ZERO 0 +#define HSW_SCS_ONE 1 +#define HSW_SCS_RED 4 +#define HSW_SCS_GREEN 5 +#define HSW_SCS_BLUE 6 +#define HSW_SCS_ALPHA 7 + #define BRW_TEXCOORDMODE_WRAP 0 #define BRW_TEXCOORDMODE_MIRROR 1 #define BRW_TEXCOORDMODE_CLAMP 2 -- cgit v1.2.3