/external/mesa3d/src/gallium/drivers/zink/ |
D | zink_state.c | 408 const struct pipe_rasterizer_state *rs_state) in zink_create_rasterizer_state() argument 416 state->base = *rs_state; in zink_create_rasterizer_state() 418 assert(rs_state->depth_clip_far == rs_state->depth_clip_near); in zink_create_rasterizer_state() 419 state->hw_state.depth_clamp = rs_state->depth_clip_near == 0; in zink_create_rasterizer_state() 420 state->hw_state.rasterizer_discard = rs_state->rasterizer_discard; in zink_create_rasterizer_state() 422 assert(rs_state->fill_front <= PIPE_POLYGON_MODE_POINT); in zink_create_rasterizer_state() 423 if (rs_state->fill_back != rs_state->fill_front) in zink_create_rasterizer_state() 425 state->hw_state.polygon_mode = (VkPolygonMode)rs_state->fill_front; // same values in zink_create_rasterizer_state() 426 state->hw_state.cull_mode = (VkCullModeFlags)rs_state->cull_face; // same bits in zink_create_rasterizer_state() 428 state->hw_state.front_face = rs_state->front_ccw ? in zink_create_rasterizer_state() [all …]
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_matrix_filter.c | 137 struct pipe_rasterizer_state rs_state; in vl_matrix_filter_init() local 151 memset(&rs_state, 0, sizeof(rs_state)); in vl_matrix_filter_init() 152 rs_state.half_pixel_center = true; in vl_matrix_filter_init() 153 rs_state.bottom_edge_rule = true; in vl_matrix_filter_init() 154 rs_state.depth_clip_near = 1; in vl_matrix_filter_init() 155 rs_state.depth_clip_far = 1; in vl_matrix_filter_init() 157 filter->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in vl_matrix_filter_init() 158 if (!filter->rs_state) in vl_matrix_filter_init() 247 pipe->delete_rasterizer_state(pipe, filter->rs_state); in vl_matrix_filter_init() 260 filter->pipe->delete_rasterizer_state(filter->pipe, filter->rs_state); in vl_matrix_filter_cleanup() [all …]
|
D | vl_median_filter.c | 248 struct pipe_rasterizer_state rs_state; in vl_median_filter_init() local 262 memset(&rs_state, 0, sizeof(rs_state)); in vl_median_filter_init() 263 rs_state.half_pixel_center = true; in vl_median_filter_init() 264 rs_state.bottom_edge_rule = true; in vl_median_filter_init() 265 rs_state.depth_clip_near = 1; in vl_median_filter_init() 266 rs_state.depth_clip_far = 1; in vl_median_filter_init() 268 filter->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in vl_median_filter_init() 269 if (!filter->rs_state) in vl_median_filter_init() 351 pipe->delete_rasterizer_state(pipe, filter->rs_state); in vl_median_filter_init() 364 filter->pipe->delete_rasterizer_state(filter->pipe, filter->rs_state); in vl_median_filter_cleanup() [all …]
|
D | vl_bicubic_filter.c | 250 struct pipe_rasterizer_state rs_state; in vl_bicubic_filter_init() local 263 memset(&rs_state, 0, sizeof(rs_state)); in vl_bicubic_filter_init() 264 rs_state.half_pixel_center = true; in vl_bicubic_filter_init() 265 rs_state.bottom_edge_rule = true; in vl_bicubic_filter_init() 266 rs_state.depth_clip_near = 1; in vl_bicubic_filter_init() 267 rs_state.depth_clip_far = 1; in vl_bicubic_filter_init() 269 filter->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in vl_bicubic_filter_init() 270 if (!filter->rs_state) in vl_bicubic_filter_init() 364 pipe->delete_rasterizer_state(pipe, filter->rs_state); in vl_bicubic_filter_init() 377 filter->pipe->delete_rasterizer_state(filter->pipe, filter->rs_state); in vl_bicubic_filter_cleanup() [all …]
|
D | vl_zscan.c | 291 struct pipe_rasterizer_state rs_state; in init_state() local 297 memset(&rs_state, 0, sizeof(rs_state)); in init_state() 298 rs_state.half_pixel_center = true; in init_state() 299 rs_state.bottom_edge_rule = true; in init_state() 300 rs_state.depth_clip_near = 1; in init_state() 301 rs_state.depth_clip_far = 1; in init_state() 303 zscan->rs_state = zscan->pipe->create_rasterizer_state(zscan->pipe, &rs_state); in init_state() 304 if (!zscan->rs_state) in init_state() 349 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state); in init_state() 368 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state); in cleanup_state() [all …]
|
D | vl_deint_filter.c | 240 struct pipe_rasterizer_state rs_state; in vl_deint_filter_init() local 272 memset(&rs_state, 0, sizeof(rs_state)); in vl_deint_filter_init() 273 rs_state.half_pixel_center = true; in vl_deint_filter_init() 274 rs_state.bottom_edge_rule = true; in vl_deint_filter_init() 275 rs_state.depth_clip_near = 1; in vl_deint_filter_init() 276 rs_state.depth_clip_far = 1; in vl_deint_filter_init() 278 filter->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in vl_deint_filter_init() 279 if (!filter->rs_state) in vl_deint_filter_init() 380 pipe->delete_rasterizer_state(pipe, filter->rs_state); in vl_deint_filter_init() 398 filter->pipe->delete_rasterizer_state(filter->pipe, filter->rs_state); in vl_deint_filter_cleanup() [all …]
|
D | vl_mc.c | 380 struct pipe_rasterizer_state rs_state; in init_pipe_state() local 430 memset(&rs_state, 0, sizeof(rs_state)); in init_pipe_state() 432 rs_state.sprite_coord_mode = PIPE_SPRITE_COORD_UPPER_LEFT; in init_pipe_state() 433 rs_state.point_quad_rasterization = true; in init_pipe_state() 434 rs_state.point_size = VL_BLOCK_WIDTH; in init_pipe_state() 435 rs_state.half_pixel_center = true; in init_pipe_state() 436 rs_state.bottom_edge_rule = true; in init_pipe_state() 437 rs_state.depth_clip_near = 1; in init_pipe_state() 438 rs_state.depth_clip_far = 1; in init_pipe_state() 440 r->rs_state = r->pipe->create_rasterizer_state(r->pipe, &rs_state); in init_pipe_state() [all …]
|
D | vl_idct.c | 509 struct pipe_rasterizer_state rs_state; in init_state() local 515 memset(&rs_state, 0, sizeof(rs_state)); in init_state() 516 rs_state.point_size = 1; in init_state() 517 rs_state.half_pixel_center = true; in init_state() 518 rs_state.bottom_edge_rule = true; in init_state() 519 rs_state.depth_clip_near = 1; in init_state() 520 rs_state.depth_clip_far = 1; in init_state() 522 idct->rs_state = idct->pipe->create_rasterizer_state(idct->pipe, &rs_state); in init_state() 523 if (!idct->rs_state) in init_state() 568 idct->pipe->delete_rasterizer_state(idct->pipe, idct->rs_state); in init_state() [all …]
|
D | vl_matrix_filter.h | 41 void *rs_state; member
|
D | vl_bicubic_filter.h | 40 void *rs_state; member
|
D | vl_median_filter.h | 49 void *rs_state; member
|
D | vl_deint_filter.h | 40 void *rs_state; member
|
D | vl_zscan.h | 50 void *rs_state; member
|
D | vl_mc.h | 50 void *rs_state; member
|
D | vl_idct.h | 46 void *rs_state; member
|
/external/mesa3d/src/gallium/drivers/r300/ |
D | r300_render_stencilref.c | 58 struct r300_rs_state *rs = (struct r300_rs_state*)r300->rs_state.state; in r300_stencilref_begin() 69 r300_mark_atom_dirty(r300, &r300->rs_state); in r300_stencilref_begin() 76 struct r300_rs_state *rs = (struct r300_rs_state*)r300->rs_state.state; in r300_stencilref_switch_side() 83 r300_mark_atom_dirty(r300, &r300->rs_state); in r300_stencilref_switch_side() 91 struct r300_rs_state *rs = (struct r300_rs_state*)r300->rs_state.state; in r300_stencilref_end() 99 r300_mark_atom_dirty(r300, &r300->rs_state); in r300_stencilref_end()
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_rs.h | 33 struct rs_state { struct 86 const struct rs_state *rs);
|
D | etnaviv_surface.c | 164 etna_compile_rs_state(ctx, &surf->clear_command, &(struct rs_state) { in etna_create_surface()
|
D | etnaviv_rs.c | 70 const struct rs_state *rs) in etna_compile_rs_state() 296 etna_compile_rs_state( ctx, &surf->clear_command, &(struct rs_state) { in etna_rs_gen_clear_surface() 759 etna_compile_rs_state(ctx, ©_to_screen, &(struct rs_state) { in etna_try_rs_blit()
|
/external/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_execute.c | 69 struct pipe_rasterizer_state rs_state; member 194 &state->rs_state); in emit_state() 419 state->rs_state.depth_clip_near = state->rs_state.depth_clip_far = !rsc->depthClampEnable; in handle_graphics_pipeline() 420 state->rs_state.rasterizer_discard = rsc->rasterizerDiscardEnable; in handle_graphics_pipeline() 421 state->rs_state.front_ccw = (rsc->frontFace == VK_FRONT_FACE_COUNTER_CLOCKWISE); in handle_graphics_pipeline() 422 state->rs_state.cull_face = vk_cull_to_pipe(rsc->cullMode); in handle_graphics_pipeline() 423 state->rs_state.fill_front = vk_polygon_mode_to_pipe(rsc->polygonMode); in handle_graphics_pipeline() 424 state->rs_state.fill_back = vk_polygon_mode_to_pipe(rsc->polygonMode); in handle_graphics_pipeline() 425 state->rs_state.point_size_per_vertex = true; in handle_graphics_pipeline() 426 state->rs_state.flatshade_first = true; in handle_graphics_pipeline() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_blitter.c | 135 void *rs_state[2][2]; /**< [scissor][msaa] */ member 166 struct pipe_rasterizer_state rs_state; in util_blitter_create() local 284 memset(&rs_state, 0, sizeof(rs_state)); in util_blitter_create() 285 rs_state.cull_face = PIPE_FACE_NONE; in util_blitter_create() 286 rs_state.half_pixel_center = 1; in util_blitter_create() 287 rs_state.bottom_edge_rule = 1; in util_blitter_create() 288 rs_state.flatshade = 1; in util_blitter_create() 289 rs_state.depth_clip_near = 1; in util_blitter_create() 290 rs_state.depth_clip_far = 1; in util_blitter_create() 295 rs_state.scissor = scissor; in util_blitter_create() [all …]
|
/external/virglrenderer/src/ |
D | vrend_decode.c | 551 struct pipe_rasterizer_state *rs_state; in vrend_decode_create_rasterizer() local 557 rs_state = CALLOC_STRUCT(pipe_rasterizer_state); in vrend_decode_create_rasterizer() 558 if (!rs_state) in vrend_decode_create_rasterizer() 562 #define ebit(name, bit) rs_state->name = (tmp >> bit) & 0x1 in vrend_decode_create_rasterizer() 563 #define emask(name, bit, mask) rs_state->name = (tmp >> bit) & mask in vrend_decode_create_rasterizer() 594 rs_state->point_size = uif(get_buf_entry(buf, VIRGL_OBJ_RS_POINT_SIZE)); in vrend_decode_create_rasterizer() 595 rs_state->sprite_coord_enable = get_buf_entry(buf, VIRGL_OBJ_RS_SPRITE_COORD_ENABLE); in vrend_decode_create_rasterizer() 601 rs_state->line_width = uif(get_buf_entry(buf, VIRGL_OBJ_RS_LINE_WIDTH)); in vrend_decode_create_rasterizer() 602 rs_state->offset_units = uif(get_buf_entry(buf, VIRGL_OBJ_RS_OFFSET_UNITS)); in vrend_decode_create_rasterizer() 603 rs_state->offset_scale = uif(get_buf_entry(buf, VIRGL_OBJ_RS_OFFSET_SCALE)); in vrend_decode_create_rasterizer() [all …]
|
/external/mesa3d/src/gallium/drivers/virgl/ |
D | virgl_context.c | 457 const struct pipe_rasterizer_state *rs_state) in virgl_create_rasterizer_state() argument 464 vrs->rs = *rs_state; in virgl_create_rasterizer_state() 467 assert(rs_state->depth_clip_near || in virgl_create_rasterizer_state() 470 virgl_encode_rasterizer_state(vctx, vrs->handle, rs_state); in virgl_create_rasterizer_state() 475 void *rs_state) in virgl_bind_rasterizer_state() argument 479 if (rs_state) { in virgl_bind_rasterizer_state() 480 struct virgl_rasterizer_state *vrs = rs_state; in virgl_bind_rasterizer_state() 481 vctx->rs_state = *vrs; in virgl_bind_rasterizer_state() 488 void *rs_state) in virgl_delete_rasterizer_state() argument 491 struct virgl_rasterizer_state *vrs = rs_state; in virgl_delete_rasterizer_state() [all …]
|
D | virgl_context.h | 93 struct virgl_rasterizer_state rs_state; member
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_meta_fast_clear.c | 325 const VkPipelineRasterizationStateCreateInfo rs_state = { in create_pipeline() local 349 .pRasterizationState = &rs_state, in create_pipeline() 395 .pRasterizationState = &rs_state, in create_pipeline() 441 .pRasterizationState = &rs_state, in create_pipeline()
|