freedreno/a6xx: Pass cs to fd6_clear_lrz()
Make it more obvious that all the clears go in the prologue. Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38450>
This commit is contained in:
@@ -823,11 +823,9 @@ clear_lrz_setup(fd_cs &cs, struct fd_resource *zsbuf, struct fd_bo *lrz, double
|
||||
|
||||
template <chip CHIP>
|
||||
void
|
||||
fd6_clear_lrz(struct fd_batch *batch, struct fd_resource *zsbuf,
|
||||
fd6_clear_lrz(fd_cs &cs, struct fd_resource *zsbuf,
|
||||
struct fd_bo *lrz, double depth)
|
||||
{
|
||||
fd_cs cs(fd_batch_get_prologue(batch));
|
||||
|
||||
if (DEBUG_BLIT) {
|
||||
fprintf(stderr, "lrz clear:\ndst resource: ");
|
||||
util_dump_resource(stderr, &zsbuf->b.b);
|
||||
|
||||
@@ -27,7 +27,7 @@ unsigned fd6_tile_mode(const struct pipe_resource *tmpl);
|
||||
*/
|
||||
|
||||
template <chip CHIP>
|
||||
void fd6_clear_lrz(struct fd_batch *batch, struct fd_resource *zsbuf,
|
||||
void fd6_clear_lrz(fd_cs &cs, struct fd_resource *zsbuf,
|
||||
struct fd_bo *lrz, double depth) assert_dt;
|
||||
template <chip CHIP>
|
||||
void fd6_clear_surface(struct fd_context *ctx, fd_cs &cs,
|
||||
|
||||
@@ -294,10 +294,10 @@ emit_lrz_clears(struct fd_batch *batch)
|
||||
|
||||
subpass->fast_cleared &= ~FD_BUFFER_LRZ;
|
||||
|
||||
fd_cs cs(fd_batch_get_prologue(batch));
|
||||
|
||||
/* prep before first clear: */
|
||||
if (count == 0) {
|
||||
fd_cs cs(fd_batch_get_prologue(batch));
|
||||
|
||||
fd6_emit_ccu_cntl<CHIP>(cs, ctx->screen, false);
|
||||
|
||||
fd_pkt7(cs, CP_SET_MARKER, 1)
|
||||
@@ -308,7 +308,7 @@ emit_lrz_clears(struct fd_batch *batch)
|
||||
fd6_set_rb_dbg_eco_mode<CHIP>(ctx, cs, true);
|
||||
}
|
||||
|
||||
fd6_clear_lrz<CHIP>(batch, zsbuf, subpass->lrz, subpass->clear_depth);
|
||||
fd6_clear_lrz<CHIP>(cs, zsbuf, subpass->lrz, subpass->clear_depth);
|
||||
|
||||
count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user