From 8c432645bb8bf23532df0c82c7f3205ad7a32573 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Wed, 8 Mar 2017 23:38:07 +0000 Subject: [PATCH] i965: remove unused macros from brw_defines.h The follow three groups are not used by neither the DRI module nor the compiler. BRW_POLYGON_*_FACING BRW_POLYGON_FACING_* BRW_STATELESS_BUFFER_* Signed-off-by: Emil Velikov Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_defines.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h index 796e56af069..28f180b279e 100644 --- a/src/mesa/drivers/dri/i965/brw_defines.h +++ b/src/mesa/drivers/dri/i965/brw_defines.h @@ -216,9 +216,6 @@ #define BRW_ADDRESS_ROUNDING_ENABLE_R_MAG 0x02 #define BRW_ADDRESS_ROUNDING_ENABLE_R_MIN 0x01 -#define BRW_POLYGON_FRONT_FACING 0 -#define BRW_POLYGON_BACK_FACING 1 - #define BRW_PREFILTER_ALWAYS 0x0 #define BRW_PREFILTER_NEVER 0x1 #define BRW_PREFILTER_LESS 0x2 @@ -499,6 +496,7 @@ enum brw_wrap_mode { #define BRW_VERTEX_SUBPIXEL_PRECISION_8BITS 0 #define BRW_VERTEX_SUBPIXEL_PRECISION_4BITS 1 + /* Execution Unit (EU) defines */ @@ -1310,22 +1308,6 @@ enum PACKED brw_width { BRW_WIDTH_16 = 4, }; -#define BRW_STATELESS_BUFFER_BOUNDARY_1K 0 -#define BRW_STATELESS_BUFFER_BOUNDARY_2K 1 -#define BRW_STATELESS_BUFFER_BOUNDARY_4K 2 -#define BRW_STATELESS_BUFFER_BOUNDARY_8K 3 -#define BRW_STATELESS_BUFFER_BOUNDARY_16K 4 -#define BRW_STATELESS_BUFFER_BOUNDARY_32K 5 -#define BRW_STATELESS_BUFFER_BOUNDARY_64K 6 -#define BRW_STATELESS_BUFFER_BOUNDARY_128K 7 -#define BRW_STATELESS_BUFFER_BOUNDARY_256K 8 -#define BRW_STATELESS_BUFFER_BOUNDARY_512K 9 -#define BRW_STATELESS_BUFFER_BOUNDARY_1M 10 -#define BRW_STATELESS_BUFFER_BOUNDARY_2M 11 - -#define BRW_POLYGON_FACING_FRONT 0 -#define BRW_POLYGON_FACING_BACK 1 - /** * Message target: Shared Function ID for where to SEND a message. * -- 2.30.2