#include "pipe/p_state.h"
#include "api_exec_decl.h"
+#include "state_tracker/st_context.h"
#include "state_tracker/st_draw.h"
typedef struct {
}
if (new_vertex_buffers || new_vertex_elements) {
- ctx->NewDriverState |= ctx->DriverFlags.NewArray;
+ ctx->NewDriverState |= ST_NEW_VERTEX_ARRAYS;
ctx->Array.NewVertexElements |= new_vertex_elements;
}
* If gallium vertex buffers are dirty, this flag indicates whether gallium
* vertex elements are dirty too. If this is false, GL states corresponding
* to vertex elements have not been changed. Thus, this affects what will
- * happen when gl_driver_flags::NewArray is set.
+ * happen when ST_NEW_VERTEX_ARRAYS is set.
*
* The driver should clear this when it's done.
*/
*/
struct gl_driver_flags
{
- /** gl_context::Array::_DrawArrays (vertex array state) */
- uint64_t NewArray;
-
/** gl_context::TransformFeedback::CurrentObject */
uint64_t NewTransformFeedback;
return;
/* On change we may get new maps into the current values */
- ctx->NewDriverState |= ctx->DriverFlags.NewArray;
+ ctx->NewDriverState |= ST_NEW_VERTEX_ARRAYS;
ctx->Array.NewVertexElements = true;
/* Finally memorize the value */
struct cso_velems_state velements;
bool uses_user_vertex_buffers;
- /* ST_NEW_VERTEX_ARRAYS alias ctx->DriverFlags.NewArray */
+ /* ST_NEW_VERTEX_ARRAYS */
/* Setup arrays */
setup_arrays<POPCNT, UPDATE>
(st, ctx->Array._DrawVAO, vp->Base.Base.DualSlotInputs,
{
struct gl_driver_flags *f = &st->ctx->DriverFlags;
- f->NewArray = ST_NEW_VERTEX_ARRAYS;
f->NewRasterizerDiscard = ST_NEW_RASTERIZER;
f->NewTileRasterOrder = ST_NEW_RASTERIZER;
f->NewUniformBuffer = ST_NEW_UNIFORM_BUFFER;