mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 12:28:07 +02:00
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa
This commit is contained in:
commit
8eee0146f2
1 changed files with 33 additions and 0 deletions
|
|
@ -3247,6 +3247,36 @@ save_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
|
|||
}
|
||||
|
||||
|
||||
static void GLAPIENTRY
|
||||
save_StencilFuncSeparateATI(GLenum frontfunc, GLenum backfunc, GLint ref,
|
||||
GLuint mask)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
Node *n;
|
||||
ASSERT_OUTSIDE_SAVE_BEGIN_END_AND_FLUSH(ctx);
|
||||
/* GL_FRONT */
|
||||
n = ALLOC_INSTRUCTION(ctx, OPCODE_STENCIL_FUNC_SEPARATE, 4);
|
||||
if (n) {
|
||||
n[1].e = GL_FRONT;
|
||||
n[2].e = frontfunc;
|
||||
n[3].i = ref;
|
||||
n[4].ui = mask;
|
||||
}
|
||||
/* GL_BACK */
|
||||
n = ALLOC_INSTRUCTION(ctx, OPCODE_STENCIL_FUNC_SEPARATE, 4);
|
||||
if (n) {
|
||||
n[1].e = GL_BACK;
|
||||
n[2].e = backfunc;
|
||||
n[3].i = ref;
|
||||
n[4].ui = mask;
|
||||
}
|
||||
if (ctx->ExecuteFlag) {
|
||||
CALL_StencilFuncSeparate(ctx->Exec, (GL_FRONT, frontfunc, ref, mask));
|
||||
CALL_StencilFuncSeparate(ctx->Exec, (GL_BACK, backfunc, ref, mask));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void GLAPIENTRY
|
||||
save_StencilMaskSeparate(GLenum face, GLuint mask)
|
||||
{
|
||||
|
|
@ -7838,6 +7868,9 @@ _mesa_init_dlist_table(struct _glapi_table *table)
|
|||
SET_StencilMaskSeparate(table, save_StencilMaskSeparate);
|
||||
SET_StencilOpSeparate(table, save_StencilOpSeparate);
|
||||
|
||||
/* ATI_separate_stencil */
|
||||
SET_StencilFuncSeparateATI(table, save_StencilFuncSeparateATI);
|
||||
|
||||
/* GL_ARB_imaging */
|
||||
/* Not all are supported */
|
||||
SET_BlendColor(table, save_BlendColor);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue