Mesa (master): radeonsi: at most 8 sets of texture coordinates are supported

Nicolai Hähnle nh at kemper.freedesktop.org
Fri May 12 08:46:41 UTC 2017


Module: Mesa
Branch: master
Commit: 90339fabd7845c09aa73ea8516ad756103b2548a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=90339fabd7845c09aa73ea8516ad756103b2548a

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed May 10 09:58:31 2017 +0200

radeonsi: at most 8 sets of texture coordinates are supported

Tested-by: Dieter Nützel <Dieter at nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

 src/gallium/drivers/radeonsi/si_shader.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 98292867c8..c12c8ea39e 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -169,6 +169,7 @@ unsigned si_shader_io_get_unique_index2(unsigned name, unsigned index)
 	case TGSI_SEMANTIC_BCOLOR:
 		return 4 + index;
 	case TGSI_SEMANTIC_TEXCOORD:
+		assert(index < 8);
 		return 6 + index;
 	default:
 		assert(!"invalid semantic name");




More information about the mesa-commit mailing list