Debian Codegraph @

src/gallium/drivers/freedreno/a4xx/fd4_zsa.h

raw symbols SCIP
1 /*
2 * Copyright © 2014 Rob Clark <[email protected]>
3 * SPDX-License-Identifier: MIT
4 *
5 * Authors:
6 * Rob Clark <[email protected]>
7 */
8
9 #ifndef FD4_ZSA_H_
10 #define FD4_ZSA_H_
11
12 #include "pipe/p_context.h"
13 #include "pipe/p_state.h"
14
15 #include "freedreno_util.h"
16
17 struct fd4_zsa_stateobj {
18 struct pipe_depth_stencil_alpha_state base;
19 uint32_t gras_alpha_control;
20 uint32_t rb_alpha_control;
21 uint32_t rb_depth_control;
22 uint32_t rb_stencil_control;
23 uint32_t rb_stencil_control2;
24 uint32_t rb_stencilrefmask;
25 uint32_t rb_stencilrefmask_bf;
26 };
27
28 static inline struct fd4_zsa_stateobj *
29 fd4_zsa_stateobj(struct pipe_depth_stencil_alpha_state *zsa)
30 {
31 return (struct fd4_zsa_stateobj *)zsa;
32 }
33
34 void *fd4_zsa_state_create(struct pipe_context *pctx,
35 const struct pipe_depth_stencil_alpha_state *cso);
36
37 #endif /* FD4_ZSA_H_ */