radeonsi: fix a typo in SI_PARAM_LINEAR_* handling
authorMarek Olšák <marek.olsak@amd.com>
Mon, 11 Jul 2016 17:14:33 +0000 (19:14 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 13 Jul 2016 17:46:16 +0000 (19:46 +0200)
introduced in 476e9cee1d0cbe321c401277214e6c36ce5b18c9

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 77d1a8b96e814cc72a26c131aacacb452ee26c7c..f5acc1e706d2c0590f1879c9d2ddbad8414e9bc2 100644 (file)
@@ -1306,7 +1306,7 @@ static unsigned select_interp_param(struct si_shader_context *ctx,
                switch (param) {
                case SI_PARAM_LINEAR_CENTROID:
                case SI_PARAM_LINEAR_SAMPLE:
-                       return SI_PARAM_PERSP_CENTER;
+                       return SI_PARAM_LINEAR_CENTER;
                }
        }