i915: Remove spurious calls to DepthRange

For both i830 and i915, the driver DepthRange function just calls
intelCalcViewport.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: Eric Anholt <eric@anholt.net>
This commit is contained in:
Ian Romanick 2013-11-05 14:34:03 -08:00
parent 0a75909b3f
commit 4fcdb75268
2 changed files with 2 additions and 9 deletions

View file

@ -832,16 +832,12 @@ i830_update_draw_buffer(struct intel_context *intel)
fb->_NumColorDrawBuffers);
intel->NewGLState |= _NEW_BUFFERS;
/* update viewport since it depends on window size */
intelCalcViewport(ctx);
/* Set state we know depends on drawable parameters:
*/
intelCalcViewport(ctx);
ctx->Driver.Scissor(ctx, ctx->Scissor.X, ctx->Scissor.Y,
ctx->Scissor.Width, ctx->Scissor.Height);
ctx->Driver.DepthRange(ctx, ctx->Viewport.Near, ctx->Viewport.Far);
/* Update culling direction which changes depending on the
* orientation of the buffer:
*/

View file

@ -806,14 +806,11 @@ i915_update_draw_buffer(struct intel_context *intel)
fb->_NumColorDrawBuffers);
intel->NewGLState |= _NEW_BUFFERS;
/* update viewport since it depends on window size */
intelCalcViewport(ctx);
/* Set state we know depends on drawable parameters:
*/
intelCalcViewport(ctx);
ctx->Driver.Scissor(ctx, ctx->Scissor.X, ctx->Scissor.Y,
ctx->Scissor.Width, ctx->Scissor.Height);
ctx->Driver.DepthRange(ctx, ctx->Viewport.Near, ctx->Viewport.Far);
/* Update culling direction which changes depending on the
* orientation of the buffer: