OSDN Git Service

swr: [rasterizer core] GS viewport array index attribute
authorTim Rowley <timothy.o.rowley@intel.com>
Mon, 13 Jun 2016 15:19:38 +0000 (09:19 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 23 Jun 2016 15:50:47 +0000 (10:50 -0500)
Only adds the attribute mapping to the jitter; no implementation yet.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/knobs.h
src/gallium/drivers/swr/rasterizer/core/state.h

index 2629276..bac2525 100644 (file)
@@ -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
index 05735b3..29048f1 100644 (file)
@@ -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
 {