gallium/u_threaded: convert dividing by index_size to a bit shift