OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4f4e24
)
i965: Add missing state flag for vertex elements on current VS program.
author
Eric Anholt
<eric@anholt.net>
Fri, 10 Jun 2011 22:07:59 +0000
(15:07 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sat, 18 Jun 2011 22:20:35 +0000
(15:20 -0700)
Fixes a missing 3DSTATE_VERTEX_ELEMENTS on topogun.trace.
src/mesa/drivers/dri/i965/brw_draw_upload.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_draw_upload.c
b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index
c6e5395
..
13d3aa7
100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/
src/mesa/drivers/dri/i965/brw_draw_upload.c
@@
-278,6
+278,7
@@
static void brw_prepare_vertices(struct brw_context *brw)
{
struct gl_context *ctx = &brw->intel.ctx;
struct intel_context *intel = intel_context(ctx);
+ /* CACHE_NEW_VS_PROG */
GLbitfield vs_inputs = brw->vs.prog_data->inputs_read;
const unsigned char *ptr = NULL;
GLuint interleaved = 0, total_size = 0;
@@
-646,7
+647,7
@@
const struct brw_tracked_state brw_vertices = {
.dirty = {
.mesa = 0,
.brw = BRW_NEW_BATCH | BRW_NEW_VERTICES,
- .cache =
0
,
+ .cache =
CACHE_NEW_VS_PROG
,
},
.prepare = brw_prepare_vertices,
.emit = brw_emit_vertices,