projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1980af
)
nvfx: fix division by zero in vp-ignore-input
author
Luca Barbieri
<luca@luca-barbieri.com>
Fri, 3 Sep 2010 18:57:44 +0000
(20:57 +0200)
committer
Luca Barbieri
<luca@luca-barbieri.com>
Fri, 3 Sep 2010 18:57:44 +0000
(20:57 +0200)
src/gallium/drivers/nvfx/nvfx_vbo.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nvfx/nvfx_vbo.c
b/src/gallium/drivers/nvfx/nvfx_vbo.c
index
e6e9a8f
..
611de80
100644
(file)
--- a/
src/gallium/drivers/nvfx/nvfx_vbo.c
+++ b/
src/gallium/drivers/nvfx/nvfx_vbo.c
@@
-527,7
+527,7
@@
nvfx_vtxelts_state_create(struct pipe_context *pipe,
cso->translate = translate_create(&transkey);
cso->vertex_length = transkey.output_stride >> 2;
- cso->max_vertices_per_packet = 2047 /
cso->vertex_length
;
+ cso->max_vertices_per_packet = 2047 /
MAX2(cso->vertex_length, 1)
;
return (void *)cso;
}