summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-09-07 08:29:13 -0400
committerTom Stellard <[email protected]>2012-09-11 14:53:47 -0400
commit5fff032dd513c74e4fdd2ac04197f09531720c77 (patch)
treebe93dd6537576ac821767716d8ba913a27e38eaa /src/gallium
parentcc571a367ed7b9aa7379d3b58b115de5e1c6dcea (diff)
radeonsi: Add missing interpolation mode to check for enabled modes
At least one interpolation mode must be enable, but the code that checks this was not checking for perspective center. Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.c1
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 75df4e84e98..8f6dde04431 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) &&