mesa: add PrimitiveRestartInSoftware to gl_context.Const

If set, then the VBO module will handle all primitive
restart scenarios before calling the driver draw_prims.

Software primitive restart support is disabled by default.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jordan Justen 2012-05-07 15:39:31 -07:00
parent bc8e0f5b0f
commit fc22fde9d8
2 changed files with 8 additions and 0 deletions

View File

@ -662,6 +662,9 @@ _mesa_init_constants(struct gl_context *ctx)
/* GL_ARB_robustness */
ctx->Const.ResetStrategy = GL_NO_RESET_NOTIFICATION_ARB;
/* PrimitiveRestart */
ctx->Const.PrimitiveRestartInSoftware = GL_FALSE;
}

View File

@ -2845,6 +2845,11 @@ struct gl_constants
*/
GLboolean GLSLSkipStrictMaxVaryingLimitCheck;
GLboolean GLSLSkipStrictMaxUniformLimitCheck;
/**
* Force software support for primitive restart in the VBO module.
*/
GLboolean PrimitiveRestartInSoftware;
};