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