Browse Source

mesa: Eliminate parameters to dd_function_table::DepthRange

No driver uses them.  They will just be annoying in future patches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
tags/mesa-10.1-rc1
Ian Romanick 11 years ago
parent
commit
6dbab6b2bb

+ 1
- 1
src/mesa/drivers/dri/i915/i830_state.c View File

@@ -453,7 +453,7 @@ i830DepthMask(struct gl_context * ctx, GLboolean flag)

/** Called from ctx->Driver.DepthRange() */
static void
i830DepthRange(struct gl_context * ctx, GLclampd nearval, GLclampd farval)
i830DepthRange(struct gl_context *ctx)
{
intelCalcViewport(ctx);
}

+ 1
- 1
src/mesa/drivers/dri/i915/i915_state.c View File

@@ -426,7 +426,7 @@ intelCalcViewport(struct gl_context * ctx)

/** Called from ctx->Driver.DepthRange() */
static void
i915DepthRange(struct gl_context * ctx, GLclampd nearval, GLclampd farval)
i915DepthRange(struct gl_context *ctx)
{
intelCalcViewport(ctx);
}

+ 1
- 2
src/mesa/drivers/dri/r200/r200_state.c View File

@@ -1611,8 +1611,7 @@ static void r200Viewport(struct gl_context *ctx)
radeon_viewport(ctx);
}

static void r200DepthRange( struct gl_context *ctx, GLclampd nearval,
GLclampd farval )
static void r200DepthRange(struct gl_context *ctx)
{
r200UpdateWindow( ctx );
}

+ 1
- 3
src/mesa/drivers/dri/radeon/radeon_common.c View File

@@ -325,9 +325,7 @@ void radeon_draw_buffer(struct gl_context *ctx, struct gl_framebuffer *fb)
radeon->NewGLState |= _NEW_SCISSOR;

if (ctx->Driver.DepthRange)
ctx->Driver.DepthRange(ctx,
ctx->Viewport.Near,
ctx->Viewport.Far);
ctx->Driver.DepthRange(ctx);

/* Update culling direction which changes depending on the
* orientation of the buffer:

+ 1
- 2
src/mesa/drivers/dri/radeon/radeon_state.c View File

@@ -1394,8 +1394,7 @@ static void radeonViewport(struct gl_context *ctx)
radeon_viewport(ctx);
}

static void radeonDepthRange( struct gl_context *ctx, GLclampd nearval,
GLclampd farval )
static void radeonDepthRange(struct gl_context *ctx)
{
radeonUpdateWindow( ctx );
}

+ 1
- 1
src/mesa/main/dd.h View File

@@ -485,7 +485,7 @@ struct dd_function_table {
/** Enable or disable writing into the depth buffer */
void (*DepthMask)(struct gl_context *ctx, GLboolean flag);
/** Specify mapping of depth values from NDC to window coordinates */
void (*DepthRange)(struct gl_context *ctx, GLclampd nearval, GLclampd farval);
void (*DepthRange)(struct gl_context *ctx);
/** Specify the current buffer for writing */
void (*DrawBuffer)( struct gl_context *ctx, GLenum buffer );
/** Specify the buffers for writing for fragment programs*/

+ 1
- 1
src/mesa/main/viewport.c View File

@@ -143,7 +143,7 @@ _mesa_DepthRange(GLclampd nearval, GLclampd farval)
#endif

if (ctx->Driver.DepthRange) {
ctx->Driver.DepthRange(ctx, nearval, farval);
ctx->Driver.DepthRange(ctx);
}
}


Loading…
Cancel
Save