Is no longer used, so we have less occasions where NewState is non zero.
Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
DEFINE_BIT(_NEW_TRANSFORM),
DEFINE_BIT(_NEW_VIEWPORT),
DEFINE_BIT(_NEW_TEXTURE_STATE),
- DEFINE_BIT(_NEW_ARRAY),
DEFINE_BIT(_NEW_RENDERMODE),
DEFINE_BIT(_NEW_BUFFERS),
DEFINE_BIT(_NEW_CURRENT_ATTRIB),
*/
_mesa_set_draw_vao(ctx, ctx->Array._EmptyVAO, 0);
- ctx->NewState |= _NEW_ARRAY;
_mesa_reference_vao(ctx, &ctx->Array.VAO, newObj);
}
(struct gl_array_attrib *) node->data;
restore_array_attrib(ctx, &ctx->Array, attr);
free_array_attrib_data(ctx, attr);
- ctx->NewState |= _NEW_ARRAY;
break;
}
default:
_mesa_print_state( const char *msg, GLuint state )
{
_mesa_debug(NULL,
- "%s: (0x%x) %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
+ "%s: (0x%x) %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
msg,
state,
(state & _NEW_MODELVIEW) ? "ctx->ModelView, " : "",
(state & _NEW_TRANSFORM) ? "ctx->Transform, " : "",
(state & _NEW_VIEWPORT) ? "ctx->Viewport, " : "",
(state & _NEW_TEXTURE_STATE) ? "ctx->Texture(State), " : "",
- (state & _NEW_ARRAY) ? "ctx->Array, " : "",
(state & _NEW_RENDERMODE) ? "ctx->RenderMode, " : "",
(state & _NEW_BUFFERS) ? "ctx->Visual, ctx->DrawBuffer,, " : "");
}
#define _NEW_TRANSFORM (1u << 17) /**< gl_context::Transform */
#define _NEW_VIEWPORT (1u << 18) /**< gl_context::Viewport */
#define _NEW_TEXTURE_STATE (1u << 19) /**< gl_context::Texture (states only) */
-#define _NEW_ARRAY (1u << 20) /**< gl_context::Array */
+/* gap */
#define _NEW_RENDERMODE (1u << 21) /**< gl_context::RenderMode, etc */
#define _NEW_BUFFERS (1u << 22) /**< gl_context::Visual, DrawBuffer, */
#define _NEW_CURRENT_ATTRIB (1u << 23) /**< gl_context::Current */
array->BufferBindingIndex = bindingIndex;
vao->NewArrays |= vao->Enabled & array_bit;
- if (vao == ctx->Array.VAO)
- ctx->NewState |= _NEW_ARRAY;
}
}
}
vao->NewArrays |= vao->Enabled & binding->_BoundArrays;
- if (vao == ctx->Array.VAO)
- ctx->NewState |= _NEW_ARRAY;
}
}
if (binding->InstanceDivisor != divisor) {
binding->InstanceDivisor = divisor;
vao->NewArrays |= vao->Enabled & binding->_BoundArrays;
- if (vao == ctx->Array.VAO)
- ctx->NewState |= _NEW_ARRAY;
}
}
normalized, integer, doubles);
vao->NewArrays |= vao->Enabled & VERT_BIT(attrib);
- if (vao == ctx->Array.VAO)
- ctx->NewState |= _NEW_ARRAY;
}
/**
vao->Enabled |= attrib_bits;
vao->NewArrays |= attrib_bits;
- if (vao == ctx->Array.VAO)
- ctx->NewState |= _NEW_ARRAY;
-
/* Update the map mode if needed */
if (attrib_bits & (VERT_BIT_POS|VERT_BIT_GENERIC0))
update_attribute_map_mode(ctx, vao);
vao->Enabled &= ~attrib_bits;
vao->NewArrays |= attrib_bits;
- if (vao == ctx->Array.VAO)
- ctx->NewState |= _NEW_ARRAY;
-
/* Update the map mode if needed */
if (attrib_bits & (VERT_BIT_POS|VERT_BIT_GENERIC0))
update_attribute_map_mode(ctx, vao);
ctx->Array.LockFirst = first;
ctx->Array.LockCount = count;
-
- ctx->NewState |= _NEW_ARRAY;
}
ctx->Array.LockFirst = 0;
ctx->Array.LockCount = 0;
- ctx->NewState |= _NEW_ARRAY;
}