1 /* 2 * Copyright © 2013 Rob Clark <[email protected]> 3 * SPDX-License-Identifier: MIT 4 * 5 * Authors: 6 * Rob Clark <[email protected]> 7 */ 8 9 #ifndef FD3_RASTERIZER_H_ 10 #define FD3_RASTERIZER_H_ 11 12 #include "pipe/p_context.h" 13 #include "pipe/p_state.h" 14 15 struct fd3_rasterizer_stateobj { 16 struct pipe_rasterizer_state base; 17 uint32_t gras_su_point_minmax; 18 uint32_t gras_su_point_size; 19 uint32_t gras_su_poly_offset_scale; 20 uint32_t gras_su_poly_offset_offset; 21 22 uint32_t gras_su_mode_control; 23 uint32_t gras_cl_clip_cntl; 24 uint32_t pc_prim_vtx_cntl; 25 }; 26 27 static inline struct fd3_rasterizer_stateobj * fd3_rasterizer_stateobj(struct pipe_rasterizer_state * rast)28fd3_rasterizer_stateobj(struct pipe_rasterizer_state *rast) 29 { 30 return (struct fd3_rasterizer_stateobj *)rast; 31 } 32 33 void *fd3_rasterizer_state_create(struct pipe_context *pctx, 34 const struct pipe_rasterizer_state *cso); 35 36 #endif /* FD3_RASTERIZER_H_ */ 37