Debian Codegraph @

src/gallium/drivers/freedreno/a6xx/fd6_blitter.h

raw symbols SCIP
1 /*
2 * Copyright © 2017 Rob Clark <[email protected]>
3 * Copyright © 2018 Google, Inc.
4 * SPDX-License-Identifier: MIT
5 *
6 * Authors:
7 * Rob Clark <[email protected]>
8 */
9
10 #ifndef FD6_BLIT_H_
11 #define FD6_BLIT_H_
12
13 #include "pipe/p_state.h"
14
15 #include "freedreno_context.h"
16
17 #include "fd6_pack.h"
18
19 template <chip CHIP>
20 void fd6_blitter_init(struct pipe_context *pctx);
21 unsigned fd6_tile_mode_for_format(const struct fd_dev_info *info, enum pipe_format pfmt);
22 unsigned fd6_tile_mode(const struct pipe_resource *tmpl);
23
24 /*
25 * Blitter APIs used by gmem for cases that need CP_BLIT's (r2d)
26 * instead of CP_EVENT_WRITE::BLITs
27 */
28
29 template <chip CHIP>
30 void fd6_clear_lrz(fd_cs &cs, struct fd_resource *zsbuf,
31 struct fd_bo *lrz, double depth) assert_dt;
32 template <chip CHIP>
33 void fd6_clear_surface(struct fd_context *ctx, fd_cs &cs,
34 struct pipe_surface *psurf, const struct pipe_box *box2d,
35 union pipe_color_union *color, uint32_t unknown_8c01) assert_dt;
36 template <chip CHIP>
37 void fd6_resolve_tile(struct fd_batch *batch, fd_cs &cs, uint32_t base,
38 struct pipe_surface *psurf, uint32_t unknown_8c01) assert_dt;
39
40 #endif /* FD6_BLIT_H_ */