Module: Mesa Branch: main Commit: 03bc7503d471dd2d2795a8f18a7212e98209a051 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=03bc7503d471dd2d2795a8f18a7212e98209a051
Author: Indrajit Kumar Das <[email protected]> Date: Fri May 13 17:11:51 2022 +0530 radeonsi: save the fs constant buffer to the util blitter context Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15318> --- src/gallium/drivers/radeonsi/si_blit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index 8a65ad240e2..f46ffea7080 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -52,6 +52,10 @@ void si_blitter_begin(struct si_context *sctx, enum si_blitter_op op) util_blitter_save_rasterizer(sctx->blitter, sctx->queued.named.rasterizer); if (op & SI_SAVE_FRAGMENT_STATE) { + struct pipe_constant_buffer fs_cb = {}; + si_get_pipe_constant_buffer(sctx, PIPE_SHADER_FRAGMENT, 0, &fs_cb); + util_blitter_save_fragment_constant_buffer_slot(sctx->blitter, &fs_cb); + pipe_resource_reference(&fs_cb.buffer, NULL); util_blitter_save_blend(sctx->blitter, sctx->queued.named.blend); util_blitter_save_depth_stencil_alpha(sctx->blitter, sctx->queued.named.dsa); util_blitter_save_stencil_ref(sctx->blitter, &sctx->stencil_ref.state);
