Commit cc5b8a93 authored by Erik Faye-Lund 's avatar Erik Faye-Lund 💬
Browse files

mesa/st: remove always-false state



This code is essentially dead now.
Signed-off-by: Erik Faye-Lund 's avatarErik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent be110ba2
...@@ -546,14 +546,11 @@ st_update_array(struct st_context *st) ...@@ -546,14 +546,11 @@ st_update_array(struct st_context *st)
struct pipe_vertex_element velements[PIPE_MAX_ATTRIBS]; struct pipe_vertex_element velements[PIPE_MAX_ATTRIBS];
unsigned num_velements; unsigned num_velements;
st->vertex_array_out_of_memory = FALSE;
st->draw_needs_minmax_index = false; st->draw_needs_minmax_index = false;
/* ST_NEW_VERTEX_ARRAYS alias ctx->DriverFlags.NewArray */ /* ST_NEW_VERTEX_ARRAYS alias ctx->DriverFlags.NewArray */
/* Setup arrays */ /* Setup arrays */
st_setup_arrays(st, vp, vp_variant, velements, vbuffer, &num_vbuffers); st_setup_arrays(st, vp, vp_variant, velements, vbuffer, &num_vbuffers);
if (st->vertex_array_out_of_memory)
return;
/* _NEW_CURRENT_ATTRIB */ /* _NEW_CURRENT_ATTRIB */
/* Setup current uploads */ /* Setup current uploads */
......
...@@ -162,7 +162,6 @@ struct st_context ...@@ -162,7 +162,6 @@ struct st_context
*/ */
boolean invalidate_on_gl_viewport; boolean invalidate_on_gl_viewport;
boolean draw_needs_minmax_index; boolean draw_needs_minmax_index;
boolean vertex_array_out_of_memory;
boolean has_hw_atomics; boolean has_hw_atomics;
/* Some state is contained in constant objects. /* Some state is contained in constant objects.
......
...@@ -183,9 +183,6 @@ st_draw_vbo(struct gl_context *ctx, ...@@ -183,9 +183,6 @@ st_draw_vbo(struct gl_context *ctx,
prepare_draw(st, ctx); prepare_draw(st, ctx);
if (st->vertex_array_out_of_memory)
return;
/* Initialize pipe_draw_info. */ /* Initialize pipe_draw_info. */
info.primitive_restart = false; info.primitive_restart = false;
info.vertices_per_patch = ctx->TessCtrlProgram.patch_vertices; info.vertices_per_patch = ctx->TessCtrlProgram.patch_vertices;
...@@ -290,9 +287,6 @@ st_indirect_draw_vbo(struct gl_context *ctx, ...@@ -290,9 +287,6 @@ st_indirect_draw_vbo(struct gl_context *ctx,
assert(stride); assert(stride);
prepare_draw(st, ctx); prepare_draw(st, ctx);
if (st->vertex_array_out_of_memory)
return;
memset(&indirect, 0, sizeof(indirect)); memset(&indirect, 0, sizeof(indirect));
util_draw_init_info(&info); util_draw_init_info(&info);
info.start = 0; /* index offset / index size */ info.start = 0; /* index offset / index size */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment