mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 03:50:13 +01:00
i965: Drop dead i915 blend state code.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
d58d0a3754
commit
7c232189c5
2 changed files with 0 additions and 41 deletions
|
|
@ -516,7 +516,6 @@ enum {
|
|||
extern int intel_translate_shadow_compare_func(GLenum func);
|
||||
extern int intel_translate_compare_func(GLenum func);
|
||||
extern int intel_translate_stencil_op(GLenum op);
|
||||
extern int intel_translate_blend_factor(GLenum factor);
|
||||
extern int intel_translate_logic_op(GLenum opcode);
|
||||
|
||||
void intel_update_renderbuffers(__DRIcontext *context,
|
||||
|
|
|
|||
|
|
@ -113,46 +113,6 @@ intel_translate_stencil_op(GLenum op)
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
intel_translate_blend_factor(GLenum factor)
|
||||
{
|
||||
switch (factor) {
|
||||
case GL_ZERO:
|
||||
return BLENDFACT_ZERO;
|
||||
case GL_SRC_ALPHA:
|
||||
return BLENDFACT_SRC_ALPHA;
|
||||
case GL_ONE:
|
||||
return BLENDFACT_ONE;
|
||||
case GL_SRC_COLOR:
|
||||
return BLENDFACT_SRC_COLR;
|
||||
case GL_ONE_MINUS_SRC_COLOR:
|
||||
return BLENDFACT_INV_SRC_COLR;
|
||||
case GL_DST_COLOR:
|
||||
return BLENDFACT_DST_COLR;
|
||||
case GL_ONE_MINUS_DST_COLOR:
|
||||
return BLENDFACT_INV_DST_COLR;
|
||||
case GL_ONE_MINUS_SRC_ALPHA:
|
||||
return BLENDFACT_INV_SRC_ALPHA;
|
||||
case GL_DST_ALPHA:
|
||||
return BLENDFACT_DST_ALPHA;
|
||||
case GL_ONE_MINUS_DST_ALPHA:
|
||||
return BLENDFACT_INV_DST_ALPHA;
|
||||
case GL_SRC_ALPHA_SATURATE:
|
||||
return BLENDFACT_SRC_ALPHA_SATURATE;
|
||||
case GL_CONSTANT_COLOR:
|
||||
return BLENDFACT_CONST_COLOR;
|
||||
case GL_ONE_MINUS_CONSTANT_COLOR:
|
||||
return BLENDFACT_INV_CONST_COLOR;
|
||||
case GL_CONSTANT_ALPHA:
|
||||
return BLENDFACT_CONST_ALPHA;
|
||||
case GL_ONE_MINUS_CONSTANT_ALPHA:
|
||||
return BLENDFACT_INV_CONST_ALPHA;
|
||||
}
|
||||
|
||||
fprintf(stderr, "Unknown value in %s: %x\n", __FUNCTION__, factor);
|
||||
return BLENDFACT_ZERO;
|
||||
}
|
||||
|
||||
int
|
||||
intel_translate_logic_op(GLenum opcode)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue