Home
last modified time | relevance | path

Searched refs:rs_state (Results 1 – 25 of 34) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/zink/
Dzink_state.c408 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/
Dvl_matrix_filter.c137 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 …]
Dvl_median_filter.c248 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 …]
Dvl_bicubic_filter.c250 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 …]
Dvl_zscan.c291 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 …]
Dvl_deint_filter.c240 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 …]
Dvl_mc.c380 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 …]
Dvl_idct.c509 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 …]
Dvl_matrix_filter.h41 void *rs_state; member
Dvl_bicubic_filter.h40 void *rs_state; member
Dvl_median_filter.h49 void *rs_state; member
Dvl_deint_filter.h40 void *rs_state; member
Dvl_zscan.h50 void *rs_state; member
Dvl_mc.h50 void *rs_state; member
Dvl_idct.h46 void *rs_state; member
/external/mesa3d/src/gallium/drivers/r300/
Dr300_render_stencilref.c58 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/
Detnaviv_rs.h33 struct rs_state { struct
86 const struct rs_state *rs);
Detnaviv_surface.c164 etna_compile_rs_state(ctx, &surf->clear_command, &(struct rs_state) { in etna_create_surface()
Detnaviv_rs.c70 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, &copy_to_screen, &(struct rs_state) { in etna_try_rs_blit()
/external/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_execute.c69 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/
Du_blitter.c135 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/
Dvrend_decode.c551 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/
Dvirgl_context.c457 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 …]
Dvirgl_context.h93 struct virgl_rasterizer_state rs_state; member
/external/mesa3d/src/amd/vulkan/
Dradv_meta_fast_clear.c325 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()

12