[Mesa-dev] [PATCH 06/16] radeonsi: Handle adjacency primitives

Michel Dänzer michel at daenzer.net
Fri Jan 24 01:33:18 PST 2014


From: Michel Dänzer <michel.daenzer at amd.com>

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/gallium/drivers/radeonsi/si_state_draw.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index 2185f16..f326261 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -391,10 +391,10 @@ static unsigned si_conv_pipe_prim(unsigned pprim)
 		[PIPE_PRIM_QUADS]			= V_008958_DI_PT_QUADLIST,
 		[PIPE_PRIM_QUAD_STRIP]			= V_008958_DI_PT_QUADSTRIP,
 		[PIPE_PRIM_POLYGON]			= V_008958_DI_PT_POLYGON,
-		[PIPE_PRIM_LINES_ADJACENCY]		= ~0,
-		[PIPE_PRIM_LINE_STRIP_ADJACENCY]	= ~0,
-		[PIPE_PRIM_TRIANGLES_ADJACENCY]		= ~0,
-		[PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY]	= ~0
+		[PIPE_PRIM_LINES_ADJACENCY]		= V_008958_DI_PT_LINELIST_ADJ,
+		[PIPE_PRIM_LINE_STRIP_ADJACENCY]	= V_008958_DI_PT_LINESTRIP_ADJ,
+		[PIPE_PRIM_TRIANGLES_ADJACENCY]		= V_008958_DI_PT_TRILIST_ADJ,
+		[PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY]	= V_008958_DI_PT_TRISTRIP_ADJ
         };
 	unsigned result = prim_conv[pprim];
         if (result == ~0) {
-- 
1.8.5.3



More information about the mesa-dev mailing list