From: Jordan Justen Date: Mon, 7 May 2012 22:39:31 +0000 (-0700) Subject: mesa: add PrimitiveRestartInSoftware to gl_context.Const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc22fde9d8ba633f9f13ea0c46baa1c826d1377f;p=mesa.git 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 Reviewed-by: Ian Romanick Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index bafd250a15c..df0452cd114 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -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; } diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index c306ac6b9e9..aa1a8ef5fc4 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -2845,6 +2845,11 @@ struct gl_constants */ GLboolean GLSLSkipStrictMaxVaryingLimitCheck; GLboolean GLSLSkipStrictMaxUniformLimitCheck; + + /** + * Force software support for primitive restart in the VBO module. + */ + GLboolean PrimitiveRestartInSoftware; };