/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_pipe_rasterizer.c | 106 struct svga_rasterizer_state *rast, in svga_define_rasterizer_object() 110 unsigned fill_mode = translate_fill_mode(rast->templ.fill_front); in svga_define_rasterizer_object() 111 const unsigned cull_mode = translate_cull_mode(rast->templ.cull_face); in svga_define_rasterizer_object() 112 const int depth_bias = rast->templ.offset_units; in svga_define_rasterizer_object() 113 const float slope_scaled_depth_bias = rast->templ.offset_scale; in svga_define_rasterizer_object() 116 const float line_width = rast->templ.line_width > 0.0f ? in svga_define_rasterizer_object() 117 rast->templ.line_width : 1.0f; in svga_define_rasterizer_object() 118 const uint8 line_factor = rast->templ.line_stipple_enable ? in svga_define_rasterizer_object() 119 rast->templ.line_stipple_factor : 0; in svga_define_rasterizer_object() 120 const uint16 line_pattern = rast in svga_define_rasterizer_object() 105 svga_define_rasterizer_object(struct svga_context *svga, struct svga_rasterizer_state *rast, unsigned samples) svga_define_rasterizer_object() argument 192 struct svga_rasterizer_state *rast = CALLOC_STRUCT(svga_rasterizer_state); svga_create_rasterizer_state() local [all...] |
H A D | svga_state_need_swtnl.c | 69 if (svga->curr.rast && in update_need_pipeline() 70 (svga->curr.rast->need_pipeline & (1 << svga->curr.reduced_prim))) { in update_need_pipeline() 71 SVGA_DBG(DEBUG_SWTNL, "%s: rast need_pipeline (0x%x) & prim (0x%x)\n", in update_need_pipeline() 73 svga->curr.rast->need_pipeline, in update_need_pipeline() 75 SVGA_DBG(DEBUG_SWTNL, "%s: rast need_pipeline tris (%s), lines (%s), points (%s)\n", in update_need_pipeline() 77 svga->curr.rast->need_pipeline_tris_str, in update_need_pipeline() 78 svga->curr.rast->need_pipeline_lines_str, in update_need_pipeline() 79 svga->curr.rast->need_pipeline_points_str); in update_need_pipeline() 84 reason = svga->curr.rast->need_pipeline_points_str; in update_need_pipeline() 87 reason = svga->curr.rast in update_need_pipeline() [all...] |
H A D | svga_state_rss.c | 144 const struct svga_rasterizer_state *rast = svga->curr.rast; in emit_rss_vgpu9() local 173 if (rast->templ.front_ccw) { in emit_rss_vgpu9() 219 const struct svga_rasterizer_state *curr = svga->curr.rast; in emit_rss_vgpu9() 259 const struct svga_rasterizer_state *curr = svga->curr.rast; in emit_rss_vgpu9() 290 unsigned enabled = svga->curr.rast->templ.clip_plane_enable; in emit_rss_vgpu9() 324 struct svga_rasterizer_state *r = svga->curr.rast; in get_no_cull_rasterizer_state() 327 struct pipe_rasterizer_state rast; in get_no_cull_rasterizer_state() local 329 memset(&rast, 0, sizeof(rast)); in get_no_cull_rasterizer_state() 369 get_alt_rasterizer_state_id(struct svga_context *svga, struct svga_rasterizer_state *rast, unsigned samples) get_alt_rasterizer_state_id() argument 484 struct svga_rasterizer_state *rast = svga->curr.rast; emit_rss_vgpu10() local [all...] |
H A D | svga_state_fs.c | 167 key->fs.light_twoside = svga->curr.rast->templ.light_twoside; in make_fs_key() 168 key->fs.front_ccw = svga->curr.rast->templ.front_ccw; in make_fs_key() 169 key->fs.pstipple = (svga->curr.rast->templ.poly_stipple_enable && in make_fs_key() 173 key->fs.aa_point = (svga->curr.rast->templ.point_smooth && in make_fs_key() 175 (svga->curr.rast->pointsize > 1.0 || in make_fs_key() 284 key->sprite_coord_enable = svga->curr.rast->templ.sprite_coord_enable; in make_fs_key() 286 key->sprite_origin_lower_left = (svga->curr.rast->templ.sprite_coord_mode in make_fs_key() 289 key->fs.flatshade = svga->curr.rast->templ.flatshade; in make_fs_key() 372 svga->curr.rast->templ.rasterizer_discard || in emit_hw_fs()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_state_rasterizer.c | 45 clear_flags(struct pipe_rasterizer_state *rast) in clear_flags() argument 47 rast->light_twoside = 0; in clear_flags() 48 rast->offset_tri = 0; in clear_flags() 49 rast->offset_line = 0; in clear_flags() 50 rast->offset_point = 0; in clear_flags() 51 rast->offset_units = 0.0f; in clear_flags() 52 rast->offset_scale = 0.0f; in clear_flags() 59 const struct pipe_rasterizer_state *rast) in llvmpipe_create_rasterizer_state() 70 memcpy(&state->draw_state, rast, sizeof *rast); in llvmpipe_create_rasterizer_state() 58 llvmpipe_create_rasterizer_state(struct pipe_context *pipe, const struct pipe_rasterizer_state *rast) llvmpipe_create_rasterizer_state() argument [all...] |
H A D | lp_rast.c | 70 lp_rast_begin(struct lp_rasterizer *rast, in lp_rast_begin() argument 73 rast->curr_scene = scene; in lp_rast_begin() 83 lp_rast_end(struct lp_rasterizer *rast) in lp_rast_end() argument 85 rast->curr_scene = NULL; in lp_rast_end() 1058 if (!task->rast->no_rast) { in rasterize_scene() 1099 lp_rast_queue_scene(struct lp_rasterizer *rast, in lp_rast_queue_scene() argument 1104 lp_fence_reference(&rast->last_fence, scene->fence); in lp_rast_queue_scene() 1105 if (rast->last_fence) in lp_rast_queue_scene() 1106 rast->last_fence->issued = TRUE; in lp_rast_queue_scene() 1108 if (rast in lp_rast_queue_scene() 1144 lp_rast_finish(struct lp_rasterizer *rast) lp_rast_finish() argument 1171 struct lp_rasterizer *rast = task->rast; thread_function() local 1240 create_rast_threads(struct lp_rasterizer *rast) create_rast_threads() argument 1263 struct lp_rasterizer *rast; lp_rast_create() local 1320 lp_rast_destroy(struct lp_rasterizer *rast) lp_rast_destroy() argument 1370 lp_rast_fence(struct lp_rasterizer *rast, struct lp_fence **fence) lp_rast_fence() argument [all...] |
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_pipe.c | 80 struct pipe_rasterizer_state rast; in nine_convert_rasterizer_state() local 82 memset(&rast, 0, sizeof(rast)); in nine_convert_rasterizer_state() 84 rast.flatshade = rs[D3DRS_SHADEMODE] == D3DSHADE_FLAT; in nine_convert_rasterizer_state() 85 /* rast.light_twoside = 0; */ in nine_convert_rasterizer_state() 86 /* rast.clamp_fragment_color = 0; */ in nine_convert_rasterizer_state() 87 /* rast.clamp_vertex_color = 0; */ in nine_convert_rasterizer_state() 88 /* rast.front_ccw = 0; */ in nine_convert_rasterizer_state() 89 rast.cull_face = d3dcull_to_pipe_face(rs[D3DRS_CULLMODE]); in nine_convert_rasterizer_state() 90 rast in nine_convert_rasterizer_state() [all...] |
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_pipe_validate.c | 150 const struct pipe_rasterizer_state *rast = draw->rasterizer; in validate_pipeline() local 158 wide_lines = rast->line_width != 1.0f && in validate_pipeline() 159 roundf(rast->line_width) > draw->pipeline.wide_line_threshold && in validate_pipeline() 160 (!rast->line_smooth || rast->multisample); in validate_pipeline() 163 if (rast->sprite_coord_enable && draw->pipeline.point_sprite) in validate_pipeline() 165 else if ((!rast->multisample && rast->point_smooth) && draw->pipeline.aapoint) in validate_pipeline() 167 else if (rast->point_size > draw->pipeline.wide_point_threshold) in validate_pipeline() 169 else if (rast in validate_pipeline() [all...] |
H A D | draw_pipe_offset.c | 151 const struct pipe_rasterizer_state *rast = stage->draw->rasterizer; in offset_first_tri() local 152 unsigned fill_mode = rast->fill_front; in offset_first_tri() 155 if (rast->fill_back != rast->fill_front) { in offset_first_tri() 158 if (ccw != rast->front_ccw) in offset_first_tri() 159 fill_mode = rast->fill_back; in offset_first_tri() 165 do_offset = rast->offset_tri; in offset_first_tri() 168 do_offset = rast->offset_line; in offset_first_tri() 171 do_offset = rast->offset_point; in offset_first_tri() 175 do_offset = rast in offset_first_tri() [all...] |
H A D | draw_pipe_unfilled.c | 215 const struct pipe_rasterizer_state *rast = stage->draw->rasterizer; in unfilled_first_tri() local 217 unfilled->mode[0] = rast->front_ccw ? rast->fill_front : rast->fill_back; in unfilled_first_tri() 218 unfilled->mode[1] = rast->front_ccw ? rast->fill_back : rast->fill_front; in unfilled_first_tri() 256 const struct pipe_rasterizer_state *rast = draw ? draw->rasterizer : NULL; in draw_unfilled_prepare_outputs() local 257 boolean is_unfilled = (rast && in draw_unfilled_prepare_outputs() 258 (rast in draw_unfilled_prepare_outputs() [all...] |
H A D | draw_pipe_wide_point.c | 102 const struct pipe_rasterizer_state *rast = draw->rasterizer; in set_texcoords() local 103 const uint texcoord_mode = rast->sprite_coord_mode; in set_texcoords() 203 const struct pipe_rasterizer_state *rast = draw->rasterizer; in widepoint_first_point() local 206 wide->half_point_size = 0.5f * rast->point_size; in widepoint_first_point() 210 if (rast->half_pixel_center) { in widepoint_first_point() 216 r = draw_get_rasterizer_no_cull(draw, rast); in widepoint_first_point() 222 if ((rast->point_size > draw->pipeline.wide_point_threshold) || in widepoint_first_point() 223 (rast->point_quad_rasterization && draw->pipeline.point_sprite)) { in widepoint_first_point() 232 if (rast->point_quad_rasterization) { in widepoint_first_point() 250 if (si >= 32 || !(rast in widepoint_first_point() [all...] |
H A D | draw_context.c | 1060 struct pipe_rasterizer_state rast; in draw_get_rasterizer_no_cull() local 1062 memset(&rast, 0, sizeof(rast)); in draw_get_rasterizer_no_cull() 1063 rast.scissor = base_rast->scissor; in draw_get_rasterizer_no_cull() 1064 rast.flatshade = base_rast->flatshade; in draw_get_rasterizer_no_cull() 1065 rast.rasterizer_discard = base_rast->rasterizer_discard; in draw_get_rasterizer_no_cull() 1066 rast.front_ccw = 1; in draw_get_rasterizer_no_cull() 1067 rast.half_pixel_center = draw->rasterizer->half_pixel_center; in draw_get_rasterizer_no_cull() 1068 rast.bottom_edge_rule = draw->rasterizer->bottom_edge_rule; in draw_get_rasterizer_no_cull() 1069 rast in draw_get_rasterizer_no_cull() 1315 const struct pipe_rasterizer_state *rast = draw->rasterizer; draw_will_inject_frontface() local [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv50_shader_state.c | 180 struct pipe_rasterizer_state *rast = &nv50->rast->pipe; in nv50_fragprog_validate() local 182 if (!fp || !rast) in nv50_fragprog_validate() 222 if (fp->fp.force_persample_interp != rast->force_persample_interp) { in nv50_fragprog_validate() 229 fp->fp.force_persample_interp = rast->force_persample_interp; in nv50_fragprog_validate() 311 if (!nv50->rast->pipe.point_quad_rasterization) { in nv50_sprite_coords_validate() 333 if (!(nv50->rast->pipe.sprite_coord_enable & (1 << fp->in[i].si))) { in nv50_sprite_coords_validate() 346 if (nv50->rast->pipe.sprite_coord_mode == PIPE_SPRITE_COORD_LOWER_LEFT) in nv50_sprite_coords_validate() 367 if (nv50->state.rasterizer_discard != nv50->rast->pipe.rasterizer_discard) { in nv50_validate_derived_rs() 368 nv50->state.rasterizer_discard = nv50->rast in nv50_validate_derived_rs() [all...] |
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_state_rasterizer.c | 38 const struct pipe_rasterizer_state *rast) in softpipe_create_rasterizer_state() 40 return mem_dup(rast, sizeof(*rast)); in softpipe_create_rasterizer_state() 37 softpipe_create_rasterizer_state(struct pipe_context *pipe, const struct pipe_rasterizer_state *rast) softpipe_create_rasterizer_state() argument
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_compiler.cpp | 350 ctx->gfx_pipeline_state.rast == NULL || in fill_mode_lowered() 356 if (((ctx->gfx_pipeline_state.rast->base.fill_front == PIPE_POLYGON_MODE_LINE && in fill_mode_lowered() 357 ctx->gfx_pipeline_state.rast->base.cull_face != PIPE_FACE_FRONT) || in fill_mode_lowered() 358 (ctx->gfx_pipeline_state.rast->base.fill_back == PIPE_POLYGON_MODE_LINE && in fill_mode_lowered() 359 ctx->gfx_pipeline_state.rast->base.cull_face == PIPE_FACE_FRONT)) && in fill_mode_lowered() 364 if (ctx->gfx_pipeline_state.rast->base.fill_front == PIPE_POLYGON_MODE_POINT) in fill_mode_lowered() 393 ctx->gfx_pipeline_state.rast->base.point_size > 1.0) && in needs_point_sprite_lowering() 400 (ctx->gfx_pipeline_state.rast->base.point_size > 1.0 || in needs_point_sprite_lowering() 401 ctx->gfx_pipeline_state.rast->base.offset_point || in needs_point_sprite_lowering() 402 (ctx->gfx_pipeline_state.rast in needs_point_sprite_lowering() 947 struct pipe_rasterizer_state *rast = &sel_ctx->ctx->gfx_pipeline_state.rast->base; d3d12_fill_shader_key() local [all...] |
H A D | d3d12_pipeline_state.cpp | 262 !state->rast->base.rasterizer_discard) { in create_gfx_pipeline_state() 272 pso_desc.StreamOutput.RasterizedStream = state->rast->base.rasterizer_discard ? D3D12_SO_NO_RASTERIZED_STREAM : 0; in create_gfx_pipeline_state() 282 pso_desc.RasterizerState = state->rast->desc; in create_gfx_pipeline_state() 287 if (depth_bias(state->rast, reduced_prim)) { in create_gfx_pipeline_state() 288 pso_desc.RasterizerState.DepthBias = state->rast->base.offset_units * 2; in create_gfx_pipeline_state() 289 pso_desc.RasterizerState.DepthBiasClamp = state->rast->base.offset_clamp; in create_gfx_pipeline_state() 290 pso_desc.RasterizerState.SlopeScaledDepthBias = state->rast->base.offset_scale; in create_gfx_pipeline_state() 309 !state->rast->desc.MultisampleEnable && in create_gfx_pipeline_state() 410 if (key->blend == state || key->zsa == state || key->rast == state) in d3d12_gfx_pipeline_state_cache_invalidate()
|
/third_party/mesa3d/src/gallium/auxiliary/vl/ |
H A D | vl_compositor.c | 130 struct pipe_rasterizer_state rast; in init_pipe_state() local 177 memset(&rast, 0, sizeof rast); in init_pipe_state() 178 rast.flatshade = 0; in init_pipe_state() 179 rast.front_ccw = 1; in init_pipe_state() 180 rast.cull_face = PIPE_FACE_NONE; in init_pipe_state() 181 rast.fill_back = PIPE_POLYGON_MODE_FILL; in init_pipe_state() 182 rast.fill_front = PIPE_POLYGON_MODE_FILL; in init_pipe_state() 183 rast.scissor = 1; in init_pipe_state() 184 rast in init_pipe_state() [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
H A D | nvc0_shader_state.c | 109 struct pipe_rasterizer_state *rast = &nvc0->rast->pipe; in nvc0_fragprog_validate() local 111 if (fp->fp.force_persample_interp != rast->force_persample_interp) { in nvc0_fragprog_validate() 118 fp->fp.force_persample_interp = rast->force_persample_interp; in nvc0_fragprog_validate() 121 if (fp->fp.msaa != rast->multisample) { in nvc0_fragprog_validate() 128 fp->fp.msaa = rast->multisample; in nvc0_fragprog_validate() 138 if (has_explicit_color && fp->fp.flatshade != rast->flatshade) { in nvc0_fragprog_validate() 143 fp->fp.flatshade = rast->flatshade; in nvc0_fragprog_validate() 149 hwflatshade = rast->flatshade; in nvc0_fragprog_validate()
|
H A D | nvc0_state_validate.c | 365 nvc0->rast->pipe.scissor == nvc0->state.scissor) in nvc0_validate_scissor() 368 if (nvc0->state.scissor != nvc0->rast->pipe.scissor) in nvc0_validate_scissor() 371 nvc0->state.scissor = nvc0->rast->pipe.scissor; in nvc0_validate_scissor() 379 if (nvc0->rast->pipe.scissor) { in nvc0_validate_scissor() 426 * updated. The rast will get updated before the validate function has a in nvc0_validate_viewport() 430 util_viewport_zmin_zmax(vp, nvc0->rast->pipe.clip_halfz, &zmin, &zmax); in nvc0_validate_viewport() 512 uint8_t clip_enable = nvc0->rast->pipe.clip_plane_enable; in nvc0_validate_clip() 570 PUSH_SPACE(push, nvc0->rast->size); in nvc0_validate_rasterizer() 571 PUSH_DATAp(push, nvc0->rast->state, nvc0->rast in nvc0_validate_rasterizer() 770 struct pipe_rasterizer_state *rast = &nvc0->rast->pipe; nvc0_validate_rast_fb() local [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
H A D | nv30_state_validate.c | 228 bool rast_scissor = nv30->rast ? nv30->rast->pipe.scissor : false; in nv30_validate_scissor() 287 if (nv30->rast->pipe.clip_plane_enable & (1 << i)) in nv30_validate_clip() 318 PUSH_SPACE(push, nv30->rast->size); in nv30_validate_rasterizer() 319 PUSH_DATAp(push, nv30->rast->data, nv30->rast->size); in nv30_validate_rasterizer() 325 struct pipe_rasterizer_state *rasterizer = &nv30->rast->pipe; in nv30_validate_multisample() 356 struct pipe_rasterizer_state *rasterizer = &nv30->rast->pipe; in nv30_validate_point_coord() 362 hw |= (nv30->rast->pipe.sprite_coord_enable & 0xff) << 8; in nv30_validate_point_coord() 454 if (!nv30->rast) in nv30_state_context_switch() [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
H A D | fd4_rasterizer.h | 48 fd4_rasterizer_stateobj(struct pipe_rasterizer_state *rast) in fd4_rasterizer_stateobj() argument 50 return (struct fd4_rasterizer_stateobj *)rast; in fd4_rasterizer_stateobj()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
H A D | fd5_rasterizer.h | 49 fd5_rasterizer_stateobj(struct pipe_rasterizer_state *rast) in fd5_rasterizer_stateobj() argument 51 return (struct fd5_rasterizer_stateobj *)rast; in fd5_rasterizer_stateobj()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
H A D | fd2_rasterizer.h | 45 fd2_rasterizer_stateobj(struct pipe_rasterizer_state *rast) in fd2_rasterizer_stateobj() argument 47 return (struct fd2_rasterizer_stateobj *)rast; in fd2_rasterizer_stateobj()
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
H A D | etnaviv_rasterizer.h | 48 etna_rasterizer_state(struct pipe_rasterizer_state *rast) in etna_rasterizer_state() argument 50 return (struct etna_rasterizer_state *)rast; in etna_rasterizer_state()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
H A D | fd3_rasterizer.h | 46 fd3_rasterizer_stateobj(struct pipe_rasterizer_state *rast) in fd3_rasterizer_stateobj() argument 48 return (struct fd3_rasterizer_stateobj *)rast; in fd3_rasterizer_stateobj()
|