mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 03:10:09 +01:00
asahi: Offset clear colour uniform by 4
Frees up u0_u1 for a bindless base address which will make render target spilling easier to implement. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24258>
This commit is contained in:
parent
0597c100cc
commit
9fbe2fdea0
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ build_background_op(nir_builder *b, enum agx_meta_op op, unsigned rt,
|
|||
} else {
|
||||
assert(op == AGX_META_OP_CLEAR);
|
||||
|
||||
return nir_load_preamble(b, nr, 32, rt * 8);
|
||||
return nir_load_preamble(b, nr, 32, 4 + (rt * 8));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2380,7 +2380,7 @@ agx_build_meta(struct agx_batch *batch, bool store, bool partial_render)
|
|||
needs_sampler = true;
|
||||
} else if (key.op[rt] == AGX_META_OP_CLEAR) {
|
||||
assert(batch->uploaded_clear_color[rt] && "set when cleared");
|
||||
agx_usc_uniform(&b, 8 * rt, 8, batch->uploaded_clear_color[rt]);
|
||||
agx_usc_uniform(&b, 4 + (8 * rt), 8, batch->uploaded_clear_color[rt]);
|
||||
} else if (key.op[rt] == AGX_META_OP_STORE) {
|
||||
struct pipe_image_view view =
|
||||
image_view_for_surface(batch->key.cbufs[rt]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue