summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c
diff options
context:
space:
mode:
authorBen Crossman <bencrossman@freedesktop.org>2005-04-14 16:58:25 +0000
committerBen Crossman <bencrossman@freedesktop.org>2005-04-14 16:58:25 +0000
commitb2b01a60dbba4ebd130898509c14ca80a847a679 (patch)
tree2e82d913496c2d9568fc15813deed2a532500158 /src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c
parent60e2810ae45b358699e6db0ddc95e0a4c1f45338 (diff)
Some initial compile fixes. Still some left and warnings that need fixing. No where near runnable yet.
Diffstat (limited to 'src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c')
-rw-r--r--src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c b/src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c
index b55a417d7b..ac7d2ccefd 100644
--- a/src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c
+++ b/src/mesa/drivers/windows/gldirect/dx9/gld_vb_mesa_render_dx9.c
@@ -1,4 +1,4 @@
-/* $Id: gld_vb_mesa_render_dx9.c,v 1.2 2004/07/01 13:14:07 keithw Exp $ */
+/* $Id: gld_vb_mesa_render_dx9.c,v 1.3 2005/04/14 16:58:25 bencrossman Exp $ */
/*
* Mesa 3-D graphics library
@@ -52,7 +52,7 @@
#include "context.h"
#include "macros.h"
#include "mtypes.h"
-#include "mmath.h"
+//#include "mmath.h"
#include "math/m_matrix.h"
#include "math/m_xform.h"
@@ -66,10 +66,10 @@
#if defined(USE_IEEE)
#define NEGATIVE(x) (GET_FLOAT_BITS(x) & (1<<31))
-#define DIFFERENT_SIGNS(x,y) ((GET_FLOAT_BITS(x) ^ GET_FLOAT_BITS(y)) & (1<<31))
+//#define DIFFERENT_SIGNS(x,y) ((GET_FLOAT_BITS(x) ^ GET_FLOAT_BITS(y)) & (1<<31))
#else
#define NEGATIVE(x) (x < 0)
-#define DIFFERENT_SIGNS(x,y) (x * y <= 0 && x - y != 0)
+//#define DIFFERENT_SIGNS(x,y) (x * y <= 0 && x - y != 0)
/* Could just use (x*y<0) except for the flatshading requirements.
* Maybe there's a better way?
*/
@@ -305,7 +305,7 @@ tnl_quad_func _gldSetupQuad[4] = {
static GLboolean _gld_mesa_render_stage_run(
GLcontext *ctx,
- struct gl_pipeline_stage *stage)
+ struct tnl_pipeline_stage *stage)
{
GLD_context *gldCtx = GLD_GET_CONTEXT(ctx);
GLD_driver_dx9 *gld = GLD_GET_DX9_DRIVER(gldCtx);
@@ -390,10 +390,10 @@ static GLboolean _gld_mesa_render_stage_run(
do {
GLuint i, length, flags = 0;
- for (i = 0 ; !(flags & PRIM_LAST) ; i += length) {
- flags = VB->Primitive[i];
- length= VB->PrimitiveLength[i];
- ASSERT(length || (flags & PRIM_LAST));
+ for (i = 0 ; !(flags & PRIM_END) ; i += length) {
+ flags = VB->Primitive[i].mode;
+ length= VB->Primitive[i].count;
+ ASSERT(length || (flags & PRIM_END));
ASSERT((flags & PRIM_MODE_MASK) <= GL_POLYGON+1);
if (length)
tab[flags & PRIM_MODE_MASK]( ctx, i, i + length, flags );
@@ -438,7 +438,7 @@ static GLboolean _gld_mesa_render_stage_run(
*/
static void _gld_mesa_render_stage_check(
GLcontext *ctx,
- struct gl_pipeline_stage *stage)
+ struct tnl_pipeline_stage *stage)
{
GLuint inputs = VERT_BIT_CLIP;
GLuint i;
@@ -480,13 +480,13 @@ static void _gld_mesa_render_stage_check(
// Destructor
static void _gld_mesa_render_stage_dtr(
- struct gl_pipeline_stage *stage)
+ struct tnl_pipeline_stage *stage)
{
}
//---------------------------------------------------------------------------
-const struct gl_pipeline_stage _gld_mesa_render_stage =
+const struct tnl_pipeline_stage _gld_mesa_render_stage =
{
"gld_mesa_render_stage",
(_NEW_BUFFERS |