mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
radeonsi: save the fs constant buffer to the util blitter context
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15318>
This commit is contained in:
parent
0d8cbf551d
commit
03bc7503d4
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue