mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i915: Restore the Viewport and DepthRange functions on 8xx.
Fixes failed viewport updates on glxgears (and other apps) resize sincee41780fedc. Bug #20473. (cherry picked from commit0e83e8f51a)
This commit is contained in:
parent
7805c3b57b
commit
cee73ffdaf
1 changed files with 21 additions and 0 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "intel_screen.h"
|
||||
#include "intel_batchbuffer.h"
|
||||
#include "intel_fbo.h"
|
||||
#include "intel_buffers.h"
|
||||
|
||||
#include "i830_context.h"
|
||||
#include "i830_reg.h"
|
||||
|
|
@ -446,6 +447,24 @@ i830DepthMask(GLcontext * ctx, GLboolean flag)
|
|||
i830->state.Ctx[I830_CTXREG_ENABLES_2] |= DISABLE_DEPTH_WRITE;
|
||||
}
|
||||
|
||||
/** Called from ctx->Driver.Viewport() */
|
||||
static void
|
||||
i830Viewport(GLcontext * ctx,
|
||||
GLint x, GLint y, GLsizei width, GLsizei height)
|
||||
{
|
||||
intelCalcViewport(ctx);
|
||||
|
||||
intel_viewport(ctx, x, y, width, height);
|
||||
}
|
||||
|
||||
|
||||
/** Called from ctx->Driver.DepthRange() */
|
||||
static void
|
||||
i830DepthRange(GLcontext * ctx, GLclampd nearval, GLclampd farval)
|
||||
{
|
||||
intelCalcViewport(ctx);
|
||||
}
|
||||
|
||||
/* =============================================================
|
||||
* Polygon stipple
|
||||
*
|
||||
|
|
@ -1064,6 +1083,8 @@ i830InitStateFuncs(struct dd_function_table *functions)
|
|||
functions->StencilFuncSeparate = i830StencilFuncSeparate;
|
||||
functions->StencilMaskSeparate = i830StencilMaskSeparate;
|
||||
functions->StencilOpSeparate = i830StencilOpSeparate;
|
||||
functions->DepthRange = i830DepthRange;
|
||||
functions->Viewport = i830Viewport;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue