mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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>
(cherry picked from commit 9f5bb8992f)
Conflicts:
src/gallium/frontends/lavapipe/lvp_execute.c
This commit is contained in:
parent
1d2c0192cf
commit
02d86e2fb0
2 changed files with 4 additions and 1 deletions
|
|
@ -4944,7 +4944,7 @@
|
|||
"description": "lavapipe: don't double-inline ubo0",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -313,6 +313,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, pipeline->inlines[stage].can_inline) {
|
||||
/* this is already inlined above */
|
||||
if (slot == 0)
|
||||
continue;
|
||||
unsigned count = pipeline->inlines[stage].count[slot];
|
||||
struct pipe_constant_buffer *cbuf = &state->const_buffer[sh][slot - 1];
|
||||
struct pipe_resource *pres = cbuf->buffer;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue