[Mesa-dev] [PATCH 2/5] radeonsi: fix a typo in SI_PARAM_LINEAR_* handling

Marek Olšák maraeo at gmail.com
Tue Jul 12 11:21:34 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

introduced in 476e9cee1d0cbe321c401277214e6c36ce5b18c9
---
 src/gallium/drivers/radeonsi/si_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 77d1a8b..f5acc1e 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -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;
 		}
 	}
 
-- 
2.7.4



More information about the mesa-dev mailing list