dst += start_slot;
+ *enabled_buffers &= ~u_bit_consecutive(start_slot, count);
+
if (src) {
for (i = 0; i < count; i++) {
if (src[i].buffer.resource)
/* Copy over the other members of pipe_vertex_buffer. */
memcpy(dst, src, count * sizeof(struct pipe_vertex_buffer));
- *enabled_buffers &= ~(((1ull << count) - 1) << start_slot);
*enabled_buffers |= bitmask << start_slot;
}
else {
/* Unreference the buffers. */
for (i = 0; i < count; i++)
pipe_vertex_buffer_unreference(&dst[i]);
-
- *enabled_buffers &= ~(((1ull << count) - 1) << start_slot);
}
}