diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2013-11-05 14:34:03 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2014-01-15 10:02:47 -0800 |
commit | 4fcdb75268fe844c60d9c53f0dfd38d7460dea00 (patch) | |
tree | 7635d8419c6b3da28fa43f5c327e0405c7fa5655 /src/mesa/drivers/dri/i915/i830_vtbl.c | |
parent | 0a75909b3f554b20c9672fc72efbc4f6ec3ce4ea (diff) | |
download | external_mesa3d-4fcdb75268fe844c60d9c53f0dfd38d7460dea00.zip external_mesa3d-4fcdb75268fe844c60d9c53f0dfd38d7460dea00.tar.gz external_mesa3d-4fcdb75268fe844c60d9c53f0dfd38d7460dea00.tar.bz2 |
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>
Diffstat (limited to 'src/mesa/drivers/dri/i915/i830_vtbl.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/i830_vtbl.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c index f988a83..f8749a5 100644 --- a/src/mesa/drivers/dri/i915/i830_vtbl.c +++ b/src/mesa/drivers/dri/i915/i830_vtbl.c @@ -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: */ |