zink: update pointer for GPL pipeline cache entry formats

this otherwise points to ctx->gfx_pipeline_state.rendering_formats,
which is broken for background compiles

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25795>
This commit is contained in:
Mike Blumenkrantz 2023-10-18 11:31:31 -04:00 committed by Marge Bot
parent ad72772d93
commit b3e864b326

View file

@ -184,6 +184,7 @@ zink_get_gfx_pipeline(struct zink_context *ctx,
* TODO: maybe optimize this since all these values aren't actually needed
*/
memcpy(&pc_entry->state, state, sizeof(*state));
pc_entry->state.rendering_info.pColorAttachmentFormats = pc_entry->state.rendering_formats;
pc_entry->prog = prog;
/* init the optimized background compile fence */
util_queue_fence_init(&pc_entry->fence);