[Mesa-dev] [PATCH 3/4] radeonsi: fix the export_prim_id field size in the shader key

Marek Olšák maraeo at gmail.com
Sun Oct 18 10:13:54 PDT 2015


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

---
 src/gallium/drivers/radeonsi/si_shader.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h
index 82d05e5..b72cb1a 100644
--- a/src/gallium/drivers/radeonsi/si_shader.h
+++ b/src/gallium/drivers/radeonsi/si_shader.h
@@ -241,7 +241,7 @@ union si_shader_key {
 		 * This describes how outputs are laid out in memory. */
 		unsigned	as_es:1; /* export shader */
 		unsigned	as_ls:1; /* local shader */
-		unsigned	export_prim_id; /* when PS needs it and GS is disabled */
+		unsigned	export_prim_id:1; /* when PS needs it and GS is disabled */
 	} vs;
 	struct {
 		unsigned	prim_mode:3;
@@ -251,7 +251,7 @@ union si_shader_key {
 		 * by the next stage (needed by ES).
 		 * This describes how outputs are laid out in memory. */
 		unsigned	as_es:1; /* export shader */
-		unsigned	export_prim_id; /* when PS needs it and GS is disabled */
+		unsigned	export_prim_id:1; /* when PS needs it and GS is disabled */
 	} tes; /* tessellation evaluation shader */
 };
 
-- 
2.1.4



More information about the mesa-dev mailing list