Mesa (master): state_tracker: set PrimitiveRestartInSoftware if needed
Jordan Justen
jljusten at kemper.freedesktop.org
Thu May 17 18:05:32 UTC 2012
Module: Mesa
Branch: master
Commit: f16b39f05ce5aa2bcffff1bba01885d0061d9e63
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f16b39f05ce5aa2bcffff1bba01885d0061d9e63
Author: Jordan Justen <jordan.l.justen at intel.com>
Date: Mon May 7 15:44:34 2012 -0700
state_tracker: set PrimitiveRestartInSoftware if needed
If the PIPE_CAP_PRIMITIVE_RESTART screen param is not set, then enable
PrimitiveRestartInSoftware to enable software primitive restart
support in the VBO module.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/state_tracker/st_extensions.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 1b4bca6..d0f392b 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -602,6 +602,7 @@ void st_init_extensions(struct st_context *st)
ctx->Extensions.NV_primitive_restart = GL_TRUE;
if (!screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART)) {
st->sw_primitive_restart = GL_TRUE;
+ ctx->Const.PrimitiveRestartInSoftware = GL_TRUE;
}
if (screen->get_param(screen, PIPE_CAP_VERTEX_COLOR_UNCLAMPED)) {
More information about the mesa-commit
mailing list