On 05/11/2012 10:43 AM, Ian Romanick wrote:
On 05/11/2012 08:15 AM, Jordan Justen wrote:
If the PIPE_CAP_PRIMITIVE_RESTART screen param is enabled, then clear
PrimitiveRestartInSoftware to disable software primitive restart
support in the VBO module.
Signed-off-by: Jordan Justen<jordan.l.jus...@intel.com>
---
src/mesa/state_tracker/st_extensions.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/state_tracker/st_extensions.c
b/src/mesa/state_tracker/st_extensions.c
index 1b4bca6..e72deb8 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -602,6 +602,8 @@ 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;
With PrimitiveRestartInSoftware, is sw_primitive_restart still used
anywhere?
Never mind. I should have read the rest of the series first. :)
+ } else {
+ ctx->Const.PrimitiveRestartInSoftware = GL_FALSE;
}
if (screen->get_param(screen, PIPE_CAP_VERTEX_COLOR_UNCLAMPED)) {
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev