aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian König <[email protected]>2012-08-24 10:55:16 +0200
committerChristian König <[email protected]>2012-08-30 10:23:32 +0200
commitf1fd94f3550372a91e79c4ff6c0b09821dfb0192 (patch)
tree30ac148dce41805eb8801da8caf86ac5278aede8 /src
parent83933606596a0197e6cd1740cb439eaf055e544d (diff)
radeonsi: fix stupid bug added in commit 07838603b9a69c05911edbcd351bfce5ad9b5a2c
Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index 5f8e2118a15..75df4e84e98 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -170,13 +170,14 @@ static void si_pipe_shader_ps(struct pipe_context *ctx, struct si_pipe_shader *s
si_pm4_set_reg(pm4, R_0286E0_SPI_BARYC_CNTL, spi_baryc_cntl);
spi_ps_input_ena = shader->spi_ps_input_ena;
/* we need to enable at least one of them, otherwise we hang the GPU */
- if (!spi_ps_input_ena & (C_0286CC_PERSP_SAMPLE_ENA |
- C_0286CC_PERSP_CENTROID_ENA |
- C_0286CC_PERSP_PULL_MODEL_ENA |
- C_0286CC_LINEAR_SAMPLE_ENA |
- C_0286CC_LINEAR_CENTER_ENA |
- C_0286CC_LINEAR_CENTROID_ENA |
- C_0286CC_LINE_STIPPLE_TEX_ENA)) {
+ if (!G_0286CC_PERSP_SAMPLE_ENA(spi_ps_input_ena) &&
+ !G_0286CC_PERSP_CENTROID_ENA(spi_ps_input_ena) &&
+ !G_0286CC_PERSP_PULL_MODEL_ENA(spi_ps_input_ena) &&
+ !G_0286CC_LINEAR_SAMPLE_ENA(spi_ps_input_ena) &&
+ !G_0286CC_LINEAR_CENTER_ENA(spi_ps_input_ena) &&
+ !G_0286CC_LINEAR_CENTROID_ENA(spi_ps_input_ena) &&
+ !G_0286CC_LINE_STIPPLE_TEX_ENA(spi_ps_input_ena)) {
+
spi_ps_input_ena |= S_0286CC_PERSP_SAMPLE_ENA(1);
}
si_pm4_set_reg(pm4, R_0286CC_SPI_PS_INPUT_ENA, spi_ps_input_ena);