projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nv40: static attribs -> stateobj
[mesa.git]
/
src
/
gallium
/
drivers
/
nv40
/
nv40_state_emit.c
diff --git
a/src/gallium/drivers/nv40/nv40_state_emit.c
b/src/gallium/drivers/nv40/nv40_state_emit.c
index 722b9f31e6df2af27b933f372227a794de289e14..c742e4f421eaded543b616ae444fab97086c36fa 100644
(file)
--- a/
src/gallium/drivers/nv40/nv40_state_emit.c
+++ b/
src/gallium/drivers/nv40/nv40_state_emit.c
@@
-82,7
+82,8
@@
nv40_state_emit(struct nv40_context *nv40)
if (!(states & (1ULL << i)))
continue;
so_ref (state->hw[i], &nv40->screen->state[i]);
- so_emit(nv40->nvws, nv40->screen->state[i]);
+ if (state->hw[i])
+ so_emit(nv40->nvws, nv40->screen->state[i]);
states &= ~(1ULL << i);
}