From b3659898759e178a6b971902d13fc9098fd1350e Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Tue, 26 Jul 2016 13:14:45 -0600 Subject: [PATCH] swr: [rasterizer core] use 32x32 macrotile for openswr Significant performance increase (up to 2x) on high geometry workloads. Signed-off-by: Tim Rowley --- src/gallium/drivers/swr/rasterizer/core/knobs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/core/knobs.h b/src/gallium/drivers/swr/rasterizer/core/knobs.h index 61eb3b47d9b..914a9aea3d1 100644 --- a/src/gallium/drivers/swr/rasterizer/core/knobs.h +++ b/src/gallium/drivers/swr/rasterizer/core/knobs.h @@ -112,12 +112,12 @@ // fixed macrotile pixel dimension for now, eventually will be // dynamically set based on tile format and pixel size -#define KNOB_MACROTILE_X_DIM 64 -#define KNOB_MACROTILE_Y_DIM 64 +#define KNOB_MACROTILE_X_DIM 32 +#define KNOB_MACROTILE_Y_DIM 32 +#define KNOB_MACROTILE_X_DIM_FIXED_SHIFT 13 +#define KNOB_MACROTILE_Y_DIM_FIXED_SHIFT 13 #define KNOB_MACROTILE_X_DIM_FIXED (KNOB_MACROTILE_X_DIM << 8) #define KNOB_MACROTILE_Y_DIM_FIXED (KNOB_MACROTILE_Y_DIM << 8) -#define KNOB_MACROTILE_X_DIM_FIXED_SHIFT 14 -#define KNOB_MACROTILE_Y_DIM_FIXED_SHIFT 14 #define KNOB_MACROTILE_X_DIM_IN_TILES (KNOB_MACROTILE_X_DIM >> KNOB_TILE_X_DIM_SHIFT) #define KNOB_MACROTILE_Y_DIM_IN_TILES (KNOB_MACROTILE_Y_DIM >> KNOB_TILE_Y_DIM_SHIFT) -- 2.30.2