Hi, following feedback from Brian and Bas, minor changes to make the series more paranoid: three v2 patches and one new patch, using 1u << idx instead of 1 << idx and adding assert(sizeof(bitfield) * 8 >= PIPE_MAX_SAMPLERS) in a number of places. Thanks, Nicolai