OSDN Git Service

st/glsl_to_nir: fix next_stage gathering
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 20 Oct 2018 04:02:59 +0000 (15:02 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 30 Oct 2018 22:33:17 +0000 (09:33 +1100)
commit31596836fc22e1f5b4cf85abc012acd27366db87
tree2d1ca080d5caa8c360c8f2cb2c3cbc5f1edcad16
parent9ec4a5ef29cd94c7d810cad5aa58c0c59148c88f
st/glsl_to_nir: fix next_stage gathering

ffs() just returns the bit that is set, we need to know what
stage that bit represents so use u_bit_scan() instead.

Fixes: 2ca5d9548fc4 ("st/glsl_to_nir: gather next_stage in shader_info")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp