diff options
author | Marek Olšák <marek.olsak@amd.com> | 2016-04-08 12:15:50 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2016-06-28 15:47:13 +0200 |
commit | c1dbc563f4a6a6b3438e97a2418922c22c1e77bf (patch) | |
tree | d449e914ae01954eb95405c30f86b95baaf8da53 /src/gallium/drivers/radeonsi | |
parent | 06f0a4d9ed50a5b562f7642cbf16a7c880693e95 (diff) | |
download | external_mesa3d-c1dbc563f4a6a6b3438e97a2418922c22c1e77bf.zip external_mesa3d-c1dbc563f4a6a6b3438e97a2418922c22c1e77bf.tar.gz external_mesa3d-c1dbc563f4a6a6b3438e97a2418922c22c1e77bf.tar.bz2 |
radeonsi: set PA_SU_SMALL_PRIM_FILTER_CNTL register on Polaris
This was missing.
Cc: 12.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 5 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/sid.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 2e2c5ca..0a2fdbf 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -3882,6 +3882,11 @@ static void si_init_config(struct si_context *sctx) if (sctx->b.family == CHIP_STONEY) si_pm4_set_reg(pm4, R_028C40_PA_SC_SHADER_CONTROL, 0); + if (sctx->b.family >= CHIP_POLARIS10) + si_pm4_set_reg(pm4, R_028830_PA_SU_SMALL_PRIM_FILTER_CNTL, + S_028830_SMALL_PRIM_FILTER_ENABLE(1) | + S_028830_LINE_FILTER_DISABLE(1)); /* line bug */ + si_pm4_set_reg(pm4, R_028080_TA_BC_BASE_ADDR, border_color_va >> 8); if (sctx->b.chip_class >= CIK) si_pm4_set_reg(pm4, R_028084_TA_BC_BASE_ADDR_HI, border_color_va >> 40); diff --git a/src/gallium/drivers/radeonsi/sid.h b/src/gallium/drivers/radeonsi/sid.h index 1363a44..b973489 100644 --- a/src/gallium/drivers/radeonsi/sid.h +++ b/src/gallium/drivers/radeonsi/sid.h @@ -7215,6 +7215,12 @@ #define G_02882C_YMAX_BOTTOM_EXCLUSION(x) (((x) >> 31) & 0x1) #define C_02882C_YMAX_BOTTOM_EXCLUSION 0x7FFFFFFF /* */ +#define R_028830_PA_SU_SMALL_PRIM_FILTER_CNTL 0x028830 /* Polaris */ +#define S_028830_SMALL_PRIM_FILTER_ENABLE(x) (((x) & 0x1) << 0) +#define S_028830_TRIANGLE_FILTER_DISABLE(x) (((x) & 0x1) << 1) +#define S_028830_LINE_FILTER_DISABLE(x) (((x) & 0x1) << 2) +#define S_028830_POINT_FILTER_DISABLE(x) (((x) & 0x1) << 3) +#define S_028830_RECTANGLE_FILTER_DISABLE(x) (((x) & 0x1) << 4) #define R_028A00_PA_SU_POINT_SIZE 0x028A00 #define S_028A00_HEIGHT(x) (((unsigned)(x) & 0xFFFF) << 0) #define G_028A00_HEIGHT(x) (((x) >> 0) & 0xFFFF) |