gallium: change pipe_draw_info::mode to be pipe_prim_type
authorBrian Paul <brianp@vmware.com>
Thu, 26 May 2016 13:17:50 +0000 (07:17 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 26 May 2016 23:44:18 +0000 (17:44 -0600)
Makes debugging with gdb a little nicer.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/include/pipe/p_state.h

index eacf9bbe68b27efdaf6de8bd1faf6d2b330a6c8d..396f563bd79b3a744bc50541654ef29ea9ea8996 100644 (file)
@@ -617,7 +617,7 @@ struct pipe_draw_info
 {
    boolean indexed;  /**< use index buffer */
 
-   unsigned mode;  /**< the mode of the primitive */
+   enum pipe_prim_type mode;  /**< the mode of the primitive */
    unsigned start;  /**< the index of the first vertex */
    unsigned count;  /**< number of vertices */