i965: Add missing state flag for vertex elements on current VS program.

Fixes a missing 3DSTATE_VERTEX_ELEMENTS on topogun.trace.
This commit is contained in:
Eric Anholt 2011-06-10 15:07:59 -07:00
parent a4f4e24f07
commit 5c2c60175d
1 changed files with 2 additions and 1 deletions

View File

@ -278,6 +278,7 @@ static void brw_prepare_vertices(struct brw_context *brw)
{ {
struct gl_context *ctx = &brw->intel.ctx; struct gl_context *ctx = &brw->intel.ctx;
struct intel_context *intel = intel_context(ctx); struct intel_context *intel = intel_context(ctx);
/* CACHE_NEW_VS_PROG */
GLbitfield vs_inputs = brw->vs.prog_data->inputs_read; GLbitfield vs_inputs = brw->vs.prog_data->inputs_read;
const unsigned char *ptr = NULL; const unsigned char *ptr = NULL;
GLuint interleaved = 0, total_size = 0; GLuint interleaved = 0, total_size = 0;
@ -646,7 +647,7 @@ const struct brw_tracked_state brw_vertices = {
.dirty = { .dirty = {
.mesa = 0, .mesa = 0,
.brw = BRW_NEW_BATCH | BRW_NEW_VERTICES, .brw = BRW_NEW_BATCH | BRW_NEW_VERTICES,
.cache = 0, .cache = CACHE_NEW_VS_PROG,
}, },
.prepare = brw_prepare_vertices, .prepare = brw_prepare_vertices,
.emit = brw_emit_vertices, .emit = brw_emit_vertices,