i965: Use ffs() on a 32-bit int value instad of ffsll().
authorEric Anholt <eric@anholt.net>
Wed, 9 Mar 2011 17:31:09 +0000 (09:31 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 11 Mar 2011 20:55:13 +0000 (12:55 -0800)
src/mesa/drivers/dri/i965/brw_draw_upload.c

index e96c32a93a635c8c05e2caa3bd5ef18532775a51..f1d00693168932d89915db3c21c933f69ffa155b 100644 (file)
@@ -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);