Home
last modified time | relevance | path

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

12

/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 = 1; in vl_matrix_filter_init()
155 filter->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in vl_matrix_filter_init()
156 if (!filter->rs_state) in vl_matrix_filter_init()
245 pipe->delete_rasterizer_state(pipe, filter->rs_state); in vl_matrix_filter_init()
258 filter->pipe->delete_rasterizer_state(filter->pipe, filter->rs_state); in vl_matrix_filter_cleanup()
287 filter->pipe->bind_rasterizer_state(filter->pipe, filter->rs_state); in vl_matrix_filter_render()
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 = 1; in vl_median_filter_init()
266 filter->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in vl_median_filter_init()
267 if (!filter->rs_state) in vl_median_filter_init()
349 pipe->delete_rasterizer_state(pipe, filter->rs_state); in vl_median_filter_init()
362 filter->pipe->delete_rasterizer_state(filter->pipe, filter->rs_state); in vl_median_filter_cleanup()
391 filter->pipe->bind_rasterizer_state(filter->pipe, filter->rs_state); in vl_median_filter_render()
Dvl_bicubic_filter.c249 struct pipe_rasterizer_state rs_state; in vl_bicubic_filter_init() local
262 memset(&rs_state, 0, sizeof(rs_state)); in vl_bicubic_filter_init()
263 rs_state.half_pixel_center = true; in vl_bicubic_filter_init()
264 rs_state.bottom_edge_rule = true; in vl_bicubic_filter_init()
265 rs_state.depth_clip = 1; in vl_bicubic_filter_init()
266 filter->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in vl_bicubic_filter_init()
267 if (!filter->rs_state) in vl_bicubic_filter_init()
361 pipe->delete_rasterizer_state(pipe, filter->rs_state); in vl_bicubic_filter_init()
374 filter->pipe->delete_rasterizer_state(filter->pipe, filter->rs_state); in vl_bicubic_filter_cleanup()
447 filter->pipe->bind_rasterizer_state(filter->pipe, filter->rs_state); in vl_bicubic_filter_render()
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 = 1; in init_state()
301 zscan->rs_state = zscan->pipe->create_rasterizer_state(zscan->pipe, &rs_state); in init_state()
302 if (!zscan->rs_state) in init_state()
347 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state); in init_state()
366 zscan->pipe->delete_rasterizer_state(zscan->pipe, zscan->rs_state); in cleanup_state()
598 zscan->pipe->bind_rasterizer_state(zscan->pipe, zscan->rs_state); in vl_zscan_render()
Dvl_deint_filter.c240 struct pipe_rasterizer_state rs_state; in vl_deint_filter_init() local
273 memset(&rs_state, 0, sizeof(rs_state)); in vl_deint_filter_init()
274 rs_state.half_pixel_center = true; in vl_deint_filter_init()
275 rs_state.bottom_edge_rule = true; in vl_deint_filter_init()
276 rs_state.depth_clip = 1; in vl_deint_filter_init()
277 filter->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in vl_deint_filter_init()
278 if (!filter->rs_state) in vl_deint_filter_init()
379 pipe->delete_rasterizer_state(pipe, filter->rs_state); in vl_deint_filter_init()
397 filter->pipe->delete_rasterizer_state(filter->pipe, filter->rs_state); in vl_deint_filter_cleanup()
464 filter->pipe->bind_rasterizer_state(filter->pipe, filter->rs_state); in vl_deint_filter_render()
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 = 1; in init_pipe_state()
438 r->rs_state = r->pipe->create_rasterizer_state(r->pipe, &rs_state); in init_pipe_state()
439 if (!r->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 = 1; in init_state()
520 idct->rs_state = idct->pipe->create_rasterizer_state(idct->pipe, &rs_state); in init_state()
521 if (!idct->rs_state) in init_state()
566 idct->pipe->delete_rasterizer_state(idct->pipe, idct->rs_state); in init_state()
583 idct->pipe->delete_rasterizer_state(idct->pipe, idct->rs_state); in cleanup_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()
Dr300_context.h532 struct r300_atom rs_state; member
Dr300_render.c74 struct r300_rs_state* rs = (struct r300_rs_state*)r300->rs_state.state; in r300_provoking_vertex_fixes()
1206 r300_mark_atom_dirty(r300, &r300->rs_state); in r300_blitter_draw_rectangle()
/external/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_rs.h33 struct rs_state { struct
84 const struct rs_state *rs);
Detnaviv_surface.c124 etna_compile_rs_state(ctx, &surf->clear_command, &(struct rs_state) { in etna_create_surface()
Detnaviv_rs.c57 const struct rs_state *rs) in etna_compile_rs_state()
271 etna_compile_rs_state( ctx, &surf->clear_command, &(struct rs_state) { in etna_rs_gen_clear_surface()
707 etna_compile_rs_state(ctx, &copy_to_screen, &(struct rs_state) { in etna_try_rs_blit()
/external/virglrenderer/src/
Dvrend_decode.c516 struct pipe_rasterizer_state *rs_state; in vrend_decode_create_rasterizer() local
522 rs_state = CALLOC_STRUCT(pipe_rasterizer_state); in vrend_decode_create_rasterizer()
523 if (!rs_state) in vrend_decode_create_rasterizer()
527 #define ebit(name, bit) rs_state->name = (tmp >> bit) & 0x1 in vrend_decode_create_rasterizer()
528 #define emask(name, bit, mask) rs_state->name = (tmp >> bit) & mask in vrend_decode_create_rasterizer()
559 rs_state->point_size = uif(get_buf_entry(ctx, VIRGL_OBJ_RS_POINT_SIZE)); in vrend_decode_create_rasterizer()
560 rs_state->sprite_coord_enable = get_buf_entry(ctx, VIRGL_OBJ_RS_SPRITE_COORD_ENABLE); in vrend_decode_create_rasterizer()
566 rs_state->line_width = uif(get_buf_entry(ctx, VIRGL_OBJ_RS_LINE_WIDTH)); in vrend_decode_create_rasterizer()
567 rs_state->offset_units = uif(get_buf_entry(ctx, VIRGL_OBJ_RS_OFFSET_UNITS)); in vrend_decode_create_rasterizer()
568 rs_state->offset_scale = uif(get_buf_entry(ctx, VIRGL_OBJ_RS_OFFSET_SCALE)); in vrend_decode_create_rasterizer()
[all …]
Dvrend_renderer.c499 struct pipe_rasterizer_state rs_state; member
2709 key->pstipple_tex = ctx->sub->rs_state.poly_stipple_enable; in vrend_fill_shader_key()
2710 key->color_two_side = ctx->sub->rs_state.light_twoside; in vrend_fill_shader_key()
2712 key->clip_plane_enable = ctx->sub->rs_state.clip_plane_enable; in vrend_fill_shader_key()
2713 key->flatshade = ctx->sub->rs_state.flatshade ? true : false; in vrend_fill_shader_key()
2719 …key->coord_replace = ctx->sub->rs_state.point_quad_rasterization ? ctx->sub->rs_state.sprite_coord… in vrend_fill_shader_key()
3243 struct pipe_rasterizer_state *state = &ctx->sub->rs_state; in vrend_update_scissor_state()
3524 if (ctx->sub->rs_state.point_quad_rasterization) { in vrend_draw_bind_samplers_shader()
3526 if (ctx->sub->rs_state.sprite_coord_enable & (1 << i)) in vrend_draw_bind_samplers_shader()
3855 if (ctx->sub->rs_state.clip_plane_enable) { in vrend_draw_vbo()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_blitter.c126 void *rs_state, *rs_state_scissor, *rs_discard_state; member
154 struct pipe_rasterizer_state rs_state; in util_blitter_create() local
272 memset(&rs_state, 0, sizeof(rs_state)); in util_blitter_create()
273 rs_state.cull_face = PIPE_FACE_NONE; in util_blitter_create()
274 rs_state.half_pixel_center = 1; in util_blitter_create()
275 rs_state.bottom_edge_rule = 1; in util_blitter_create()
276 rs_state.flatshade = 1; in util_blitter_create()
277 rs_state.depth_clip = 1; in util_blitter_create()
278 ctx->rs_state = pipe->create_rasterizer_state(pipe, &rs_state); in util_blitter_create()
280 rs_state.scissor = 1; in util_blitter_create()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_meta_fast_clear.c306 const VkPipelineRasterizationStateCreateInfo rs_state = { in create_pipeline() local
330 .pRasterizationState = &rs_state, in create_pipeline()
376 .pRasterizationState = &rs_state, in create_pipeline()
422 .pRasterizationState = &rs_state, in create_pipeline()
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_context.c294 const struct pipe_rasterizer_state *rs_state) in virgl_create_rasterizer_state() argument
300 virgl_encode_rasterizer_state(vctx, handle, rs_state); in virgl_create_rasterizer_state()
305 void *rs_state) in virgl_bind_rasterizer_state() argument
308 uint32_t handle = (unsigned long)rs_state; in virgl_bind_rasterizer_state()
314 void *rs_state) in virgl_delete_rasterizer_state() argument
317 uint32_t handle = (unsigned long)rs_state; in virgl_delete_rasterizer_state()

12