summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-31 11:27:16 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-31 11:27:16 -0600
commit2e21058e3d2c484b282cbc0bb5e7169b9a8d4fc7 (patch)
tree240d5bbd4a45a98e19d104f62e7e3a687209ca1e /src/mesa/pipe/softpipe
parent898d68a3762f84f0d435cda2f6aafddd356d1788 (diff)
Define attrib_format and interp_mode enum typedefs and use where appropriate.
Diffstat (limited to 'src/mesa/pipe/softpipe')
-rw-r--r--src/mesa/pipe/softpipe/sp_prim_setup.c6
-rw-r--r--src/mesa/pipe/softpipe/sp_state_derived.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/pipe/softpipe/sp_prim_setup.c b/src/mesa/pipe/softpipe/sp_prim_setup.c
index e7b58e5314..83d317c36f 100644
--- a/src/mesa/pipe/softpipe/sp_prim_setup.c
+++ b/src/mesa/pipe/softpipe/sp_prim_setup.c
@@ -38,9 +38,9 @@
#include "sp_quad.h"
#include "sp_prim_setup.h"
#include "pipe/draw/draw_private.h"
+#include "pipe/draw/draw_vertex.h"
#include "pipe/p_util.h"
-#include "pipe/draw/draw_vertex.h"
/**
@@ -461,7 +461,7 @@ static void tri_persp_coeff( struct setup_stage *setup,
*/
static void setup_tri_coefficients( struct setup_stage *setup )
{
- const enum interp_mode *interp = setup->softpipe->vertex_info.interp_mode;
+ const interp_mode *interp = setup->softpipe->vertex_info.interp_mode;
unsigned slot, j;
/* z and w are done by linear interpolation:
@@ -680,7 +680,7 @@ line_persp_coeff(struct setup_stage *setup, unsigned slot, unsigned i)
static INLINE void
setup_line_coefficients(struct setup_stage *setup, struct prim_header *prim)
{
- const enum interp_mode *interp = setup->softpipe->vertex_info.interp_mode;
+ const interp_mode *interp = setup->softpipe->vertex_info.interp_mode;
unsigned slot, j;
/* use setup->vmin, vmax to point to vertices */
diff --git a/src/mesa/pipe/softpipe/sp_state_derived.c b/src/mesa/pipe/softpipe/sp_state_derived.c
index 4880870e6e..e08ed50a70 100644
--- a/src/mesa/pipe/softpipe/sp_state_derived.c
+++ b/src/mesa/pipe/softpipe/sp_state_derived.c
@@ -43,8 +43,8 @@
*/
static void calculate_vertex_layout( struct softpipe_context *softpipe )
{
- const unsigned inputsRead = softpipe->fs.inputs_read;
- const uint colorInterp
+ const uint inputsRead = softpipe->fs.inputs_read;
+ const interp_mode colorInterp
= softpipe->setup.flatshade ? INTERP_CONSTANT : INTERP_LINEAR;
struct vertex_info *vinfo = &softpipe->vertex_info;
uint front0 = 0, back0 = 0, front1 = 0, back1 = 0;