lavapipe: don't double-inline ubo0

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>
This commit is contained in:
Mike Blumenkrantz 2023-04-07 11:23:26 -04:00 committed by Marge Bot
parent 7582752233
commit 9f5bb8992f

View file

@ -319,6 +319,9 @@ update_inline_shader_state(struct rendering_state *state, enum pipe_shader_type
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;