wined3d: Use wined3d_bit_scan() in draw_primitive_immediate_mode().