mesa: Expose MAX_FRAGMENT_INPUT_COMPONENTS on ES3 and desktop 3.2.
piglit OpenGL ES 3.0/minmax now passes. This was also one of the subcase failures in OpenGL 3.2/minmax (and still is, because our value is too low for 3.2, but at least we report what it is). Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
7500ad23eb
commit
bc8bfdc42c
|
@ -407,6 +407,12 @@ static const int extra_gl30_es3[] = {
|
||||||
EXTRA_END,
|
EXTRA_END,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const int extra_gl32_es3[] = {
|
||||||
|
EXTRA_VERSION_32,
|
||||||
|
EXTRA_API_ES3,
|
||||||
|
EXTRA_END,
|
||||||
|
};
|
||||||
|
|
||||||
static const int
|
static const int
|
||||||
extra_ARB_vertex_program_api_es2[] = {
|
extra_ARB_vertex_program_api_es2[] = {
|
||||||
EXT(ARB_vertex_program),
|
EXT(ARB_vertex_program),
|
||||||
|
@ -724,6 +730,7 @@ find_custom_value(struct gl_context *ctx, const struct value_desc *d, union valu
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GL_MAX_VARYING_FLOATS_ARB:
|
case GL_MAX_VARYING_FLOATS_ARB:
|
||||||
|
case GL_MAX_FRAGMENT_INPUT_COMPONENTS:
|
||||||
v->value_int = ctx->Const.MaxVarying * 4;
|
v->value_int = ctx->Const.MaxVarying * 4;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -329,6 +329,9 @@ descriptor=[
|
||||||
[ "MAJOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ],
|
[ "MAJOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ],
|
||||||
[ "MINOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ],
|
[ "MINOR_VERSION", "LOC_CUSTOM, TYPE_INT, 0, extra_gl30_es3" ],
|
||||||
|
|
||||||
|
# GL 3.0 / GLES3
|
||||||
|
[ "MAX_FRAGMENT_INPUT_COMPONENTS", "LOC_CUSTOM, TYPE_INT, 0, extra_gl32_es3" ],
|
||||||
|
|
||||||
# GL_ARB_ES3_compatibility
|
# GL_ARB_ES3_compatibility
|
||||||
[ "MAX_ELEMENT_INDEX", "CONTEXT_INT64(Const.MaxElementIndex), extra_ARB_ES3_compatibility_api_es3"],
|
[ "MAX_ELEMENT_INDEX", "CONTEXT_INT64(Const.MaxElementIndex), extra_ARB_ES3_compatibility_api_es3"],
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue