radeonsi: Add missing interpolation mode to check for enabled modes
authorTom Stellard <thomas.stellard@amd.com>
Fri, 7 Sep 2012 12:29:13 +0000 (08:29 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 11 Sep 2012 18:53:47 +0000 (14:53 -0400)
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 <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state_draw.c

index 75df4e84e98d09ea2f83acb60a58fdc1b4ef8d96..8f6dde04431ea37a47e36eb332052a5352c0283c 100644 (file)
@@ -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) &&