[Mesa-dev] [PATCH 03/10] radeonsi: Add missing interpolation mode to check for enabled modes

Tom Stellard tom at stellard.net
Fri Sep 7 09:09:22 PDT 2012


From: Tom Stellard <thomas.stellard at amd.com>

At least one interpolation mode must be enable, but the code that checks
this was not checking for perspective center.
---
 src/gallium/drivers/radeonsi/si_state_draw.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index 75df4e8..8f6dde0 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -171,6 +171,7 @@ static void si_pipe_shader_ps(struct pipe_context *ctx, struct si_pipe_shader *s
 	spi_ps_input_ena = shader->spi_ps_input_ena;
 	/* we need to enable at least one of them, otherwise we hang the GPU */
 	if (!G_0286CC_PERSP_SAMPLE_ENA(spi_ps_input_ena) &&
+	    !G_0286CC_PERSP_CENTER_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) &&
-- 
1.7.3.4



More information about the mesa-dev mailing list