From: Eric Anholt Date: Wed, 9 Mar 2011 17:31:09 +0000 (-0800) Subject: i965: Use ffs() on a 32-bit int value instad of ffsll(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ae1d195061b5f01d85b8f6d48d89d7995b07f4f;p=mesa.git i965: Use ffs() on a 32-bit int value instad of ffsll(). --- diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index e96c32a93a6..f1d00693168 100644 --- 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);