[Mesa-dev] [PATCH v2 10/14] swr: [rasterizer core] GS viewport array index attribute

Tim Rowley timothy.o.rowley at intel.com
Mon Jun 20 21:37:04 UTC 2016


Only adds the attribute mapping to the jitter; no implementation yet.
---
 src/gallium/drivers/swr/rasterizer/core/knobs.h | 2 +-
 src/gallium/drivers/swr/rasterizer/core/state.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/core/knobs.h b/src/gallium/drivers/swr/rasterizer/core/knobs.h
index 2629276..bac2525 100644
--- a/src/gallium/drivers/swr/rasterizer/core/knobs.h
+++ b/src/gallium/drivers/swr/rasterizer/core/knobs.h
@@ -77,7 +77,7 @@
 #define KNOB_NUM_STREAMS                    32
 
 // Maximum supported number of attributes per vertex
-#define KNOB_NUM_ATTRIBUTES                 38
+#define KNOB_NUM_ATTRIBUTES                 39
 
 // Maximum supported active viewports and scissors
 #define KNOB_NUM_VIEWPORTS_SCISSORS         16
diff --git a/src/gallium/drivers/swr/rasterizer/core/state.h b/src/gallium/drivers/swr/rasterizer/core/state.h
index 05735b3..29048f1 100644
--- a/src/gallium/drivers/swr/rasterizer/core/state.h
+++ b/src/gallium/drivers/swr/rasterizer/core/state.h
@@ -197,6 +197,7 @@ enum SWR_OUTER_TESSFACTOR_ID
 #define VERTEX_CLIPCULL_DIST_LO_SLOT 35 // VS writes lower 4 clip/cull dist
 #define VERTEX_CLIPCULL_DIST_HI_SLOT 36 // VS writes upper 4 clip/cull dist
 #define VERTEX_POINT_SIZE_SLOT 37       // VS writes point size here
+#define VERTEX_VIEWPORT_ARRAY_INDEX_SLOT 38
 // SoAoSoA
 struct simdvertex
 {
-- 
1.9.1



More information about the mesa-dev mailing list