projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fbc50e
)
nv40: remove redundant state_emit() calls
author
Ben Skeggs
<skeggsb@gmail.com>
Wed, 2 Apr 2008 23:39:00 +0000
(09:39 +1000)
committer
Ben Skeggs
<skeggsb@gmail.com>
Fri, 4 Apr 2008 01:17:28 +0000
(11:17 +1000)
src/gallium/drivers/nv40/nv40_vbo.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv40/nv40_vbo.c
b/src/gallium/drivers/nv40/nv40_vbo.c
index e5ee5f3c4708f2f368dbb32890920202ac20decd..8c446936ea1f646686d08ab76e13e436ef28acf4 100644
(file)
--- a/
src/gallium/drivers/nv40/nv40_vbo.c
+++ b/
src/gallium/drivers/nv40/nv40_vbo.c
@@
-375,8
+375,6
@@
nv40_draw_elements_inline(struct pipe_context *pipe,
struct pipe_winsys *ws = pipe->winsys;
void *map;
- nv40_state_emit(nv40);
-
map = ws->buffer_map(ws, ib, PIPE_BUFFER_USAGE_CPU_READ);
if (!ib) {
NOUVEAU_ERR("failed mapping ib\n");
@@
-468,7
+466,6
@@
nv40_draw_elements(struct pipe_context *pipe,
return nv40_draw_elements_swtnl(pipe, NULL, 0,
mode, start, count);
}
- nv40_state_emit(nv40);
if (idxbuf) {
nv40_draw_elements_vbo(pipe, mode, start, count);