projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e02303
)
i965: Use ffs() on a 32-bit int value instad of ffsll().
author
Eric Anholt
<eric@anholt.net>
Wed, 9 Mar 2011 17:31:09 +0000
(09:31 -0800)
committer
Eric Anholt
<eric@anholt.net>
Fri, 11 Mar 2011 20:55:13 +0000
(12:55 -0800)
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 e96c32a93a635c8c05e2caa3bd5ef18532775a51..f1d00693168932d89915db3c21c933f69ffa155b 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/
src/mesa/drivers/dri/i965/brw_draw_upload.c
@@
-291,7
+291,7
@@
static void brw_prepare_vertices(struct brw_context *brw)
/* Accumulate the list of enabled arrays. */
brw->vb.nr_enabled = 0;
while (vs_inputs) {
- GLuint i =
_mesa_ffsll
(vs_inputs) - 1;
+ GLuint i =
ffs
(vs_inputs) - 1;
struct brw_vertex_element *input = &brw->vb.inputs[i];
vs_inputs &= ~(1 << i);