diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index 2cf6f90840d..8bd918d80e3 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -1771,6 +1771,12 @@ static void handle_end_rendering(struct vk_cmd_queue_entry *cmd, if (!state->poison_mem) return; + /* ensure that textures are correctly framebuffer-referenced in llvmpipe */ + if (state->fb_remapped) { + state->fb_remapped = false; + emit_fb_state(state); + } + union pipe_color_union color_clear_val; memset(color_clear_val.ui, rand() % UINT8_MAX, sizeof(color_clear_val.ui));