xref: /aosp_15_r20/external/mesa3d/src/gallium/drivers/freedreno/a2xx/fd2_rasterizer.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright © 2012-2013 Rob Clark <[email protected]>
3  * SPDX-License-Identifier: MIT
4  *
5  * Authors:
6  *    Rob Clark <[email protected]>
7  */
8 
9 #ifndef FD2_RASTERIZER_H_
10 #define FD2_RASTERIZER_H_
11 
12 #include "pipe/p_context.h"
13 #include "pipe/p_state.h"
14 
15 struct fd2_rasterizer_stateobj {
16    struct pipe_rasterizer_state base;
17    uint32_t pa_sc_line_stipple;
18    uint32_t pa_cl_clip_cntl;
19    uint32_t pa_su_vtx_cntl;
20    uint32_t pa_su_point_size;
21    uint32_t pa_su_point_minmax;
22    uint32_t pa_su_line_cntl;
23    uint32_t pa_su_sc_mode_cntl;
24 };
25 
26 static inline struct fd2_rasterizer_stateobj *
fd2_rasterizer_stateobj(struct pipe_rasterizer_state * rast)27 fd2_rasterizer_stateobj(struct pipe_rasterizer_state *rast)
28 {
29    return (struct fd2_rasterizer_stateobj *)rast;
30 }
31 
32 void *fd2_rasterizer_state_create(struct pipe_context *pctx,
33                                   const struct pipe_rasterizer_state *cso);
34 
35 #endif /* FD2_RASTERIZER_H_ */
36