this was already handled above and causes negative indexing
cc: mesa-stable
Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22363>
if (constbuf_dirty) {
struct pipe_box box = {0};
u_foreach_bit(slot, shader->inlines.can_inline) {
+ /* this is already inlined above */
+ if (slot == 0)
+ continue;
unsigned count = shader->inlines.count[slot];
struct pipe_constant_buffer *cbuf = &state->const_buffer[sh][slot - 1];
struct pipe_resource *pres = cbuf->buffer;