diff options
author | Ian Romanick <[email protected]> | 2013-11-05 14:16:05 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-01-15 10:02:48 -0800 |
commit | 6dbab6b2bb29e3b0595762920ef17e2ae5a9bf3a (patch) | |
tree | 473a3582fa47487fd0c1a030e9ff619a8774deea /src/mesa/drivers/dri/radeon | |
parent | 065bd6ffc23c9cfef9b10418fb06233a912d6471 (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_common.c | 4 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_state.c | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common.c b/src/mesa/drivers/dri/radeon/radeon_common.c index d083e5b0214..a5d363fc71b 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common.c +++ b/src/mesa/drivers/dri/radeon/radeon_common.c @@ -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: diff --git a/src/mesa/drivers/dri/radeon/radeon_state.c b/src/mesa/drivers/dri/radeon/radeon_state.c index 160f3969d75..09386d99e40 100644 --- a/src/mesa/drivers/dri/radeon/radeon_state.c +++ b/src/mesa/drivers/dri/radeon/radeon_state.c @@ -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 ); } |