From: Tim Rowley Date: Tue, 26 Jul 2016 19:14:45 +0000 (-0600) Subject: swr: [rasterizer core] use 32x32 macrotile for openswr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b3659898759e178a6b971902d13fc9098fd1350e;p=mesa.git swr: [rasterizer core] use 32x32 macrotile for openswr Significant performance increase (up to 2x) on high geometry workloads. Signed-off-by: Tim Rowley --- 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)