st/mesa: Remove support for GL_EXT_blend_logic_op
It was broken, and it isn't really useful anyway. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Marek Olšák <maraeo@gmail.com> Cc: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -200,15 +200,7 @@ update_blend( struct st_context *st )
|
|||||||
num_state = ctx->Const.MaxDrawBuffers;
|
num_state = ctx->Const.MaxDrawBuffers;
|
||||||
blend->independent_blend_enable = 1;
|
blend->independent_blend_enable = 1;
|
||||||
}
|
}
|
||||||
/* Note it is impossible to correctly deal with EXT_blend_logic_op and
|
if (ctx->Color.ColorLogicOpEnabled) {
|
||||||
EXT_draw_buffers2/EXT_blend_equation_separate at the same time.
|
|
||||||
These combinations would require support for per-rt logicop enables
|
|
||||||
and separate alpha/rgb logicop/blend support respectively. Neither
|
|
||||||
possible in gallium nor most hardware. Assume these combinations
|
|
||||||
don't happen. */
|
|
||||||
if (ctx->Color.ColorLogicOpEnabled ||
|
|
||||||
(ctx->Color.BlendEnabled &&
|
|
||||||
ctx->Color.Blend[0].EquationRGB == GL_LOGIC_OP)) {
|
|
||||||
/* logicop enabled */
|
/* logicop enabled */
|
||||||
blend->logicop_enable = 1;
|
blend->logicop_enable = 1;
|
||||||
blend->logicop_func = translate_logicop(ctx->Color.LogicOp);
|
blend->logicop_func = translate_logicop(ctx->Color.LogicOp);
|
||||||
|
@@ -267,7 +267,6 @@ void st_init_extensions(struct st_context *st)
|
|||||||
|
|
||||||
ctx->Extensions.EXT_blend_color = GL_TRUE;
|
ctx->Extensions.EXT_blend_color = GL_TRUE;
|
||||||
ctx->Extensions.EXT_blend_func_separate = GL_TRUE;
|
ctx->Extensions.EXT_blend_func_separate = GL_TRUE;
|
||||||
ctx->Extensions.EXT_blend_logic_op = GL_TRUE;
|
|
||||||
ctx->Extensions.EXT_blend_minmax = GL_TRUE;
|
ctx->Extensions.EXT_blend_minmax = GL_TRUE;
|
||||||
ctx->Extensions.EXT_blend_subtract = GL_TRUE;
|
ctx->Extensions.EXT_blend_subtract = GL_TRUE;
|
||||||
ctx->Extensions.EXT_framebuffer_blit = GL_TRUE;
|
ctx->Extensions.EXT_framebuffer_blit = GL_TRUE;
|
||||||
|
Reference in New Issue
Block a user