aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-05-25 09:46:17 -0600
committerBrian Paul <[email protected]>2016-05-26 17:44:17 -0600
commit2c07c40d2f65e3c7ac25db21b247e647c846edcf (patch)
tree15881758d5d3d932be21a8f9688af23794120f70 /src/gallium
parent0f983e1793360d98eb8e254755d95d33e2ea8ea2 (diff)
svga: clean up and improve comments in svga_draw_private.h
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/svga/svga_draw_private.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gallium/drivers/svga/svga_draw_private.h b/src/gallium/drivers/svga/svga_draw_private.h
index c8217422c96..48e0b6017fd 100644
--- a/src/gallium/drivers/svga/svga_draw_private.h
+++ b/src/gallium/drivers/svga/svga_draw_private.h
@@ -157,13 +157,17 @@ struct svga_hwtnl {
* This is compensated for in the offset associated with all
* vertex buffers.
*/
-
int index_bias;
- /* Flatshade information:
+ /* Provoking vertex information (for flat shading). */
+ unsigned api_pv; /**< app-requested PV mode (PV_FIRST or PV_LAST) */
+ unsigned hw_pv; /**< device-supported PV mode (PV_FIRST or PV_LAST) */
+
+ /* The triangle fillmode for the device (one of PIPE_POLYGON_MODE_{FILL,
+ * LINE,POINT}). If the polygon front mode matches the back mode,
+ * api_fillmode will be that mode. Otherwise, api_fillmode will be
+ * PIPE_POLYGON_MODE_FILL.
*/
- unsigned api_pv;
- unsigned hw_pv;
unsigned api_fillmode;
/* Cache the results of running a particular generate func on each