mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
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:
parent
0a75909b3f
commit
4fcdb75268
2 changed files with 2 additions and 9 deletions
|
|
@ -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:
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue