Lines Matching refs:vrend_context
217 struct vrend_context *current_ctx;
218 struct vrend_context *current_hw_ctx;
539 struct vrend_context { struct
566 static struct vrend_resource *vrend_renderer_ctx_res_lookup(struct vrend_context *ctx, int res_hand… argument
567 static void vrend_pause_render_condition(struct vrend_context *ctx, bool pause);
568 static void vrend_update_viewport_state(struct vrend_context *ctx);
569 static void vrend_update_scissor_state(struct vrend_context *ctx);
571 static void vrend_finish_context_switch(struct vrend_context *ctx);
572 static void vrend_patch_blend_state(struct vrend_context *ctx);
573 static void vrend_update_frontface_state(struct vrend_context *ctx);
576 static void vrend_renderer_detach_res_ctx_p(struct vrend_context *ctx, int res_handle);
578 static void vrend_apply_sampler_state(struct vrend_context *ctx,
584 void vrend_update_stencil_state(struct vrend_context *ctx);
636 static void __report_context_error(const char *fname, struct vrend_context *ctx, enum virgl_ctx_err… in __report_context_error()
644 void vrend_report_buffer_error(struct vrend_context *ctx, int cmd) in vrend_report_buffer_error()
658 static void __report_core_warn(const char *fname, struct vrend_context *ctx, enum virgl_ctx_errors … in __report_core_warn()
690 static void __report_gles_warn(const char *fname, struct vrend_context *ctx, enum virgl_ctx_errors … in __report_gles_warn()
698 static void __report_gles_missing_func(const char *fname, struct vrend_context *ctx, const char *mi… in __report_gles_missing_func()
811 static bool vrend_compile_shader(struct vrend_context *ctx, in vrend_compile_shader()
870 static void vrend_use_program(struct vrend_context *ctx, GLuint program_id) in vrend_use_program()
878 static void vrend_init_pstipple_texture(struct vrend_context *ctx) in vrend_init_pstipple_texture()
891 static void vrend_blend_enable(struct vrend_context *ctx, bool blend_enable) in vrend_blend_enable()
902 static void vrend_depth_test_enable(struct vrend_context *ctx, bool depth_test_enable) in vrend_depth_test_enable()
913 static void vrend_alpha_test_enable(struct vrend_context *ctx, bool alpha_test_enable) in vrend_alpha_test_enable()
928 static void vrend_stencil_test_enable(struct vrend_context *ctx, bool stencil_test_enable) in vrend_stencil_test_enable()
1196 static struct vrend_linked_shader_program *add_cs_shader_program(struct vrend_context *ctx, in add_cs_shader_program()
1233 static struct vrend_linked_shader_program *add_shader_program(struct vrend_context *ctx, in add_shader_program()
1404 static struct vrend_linked_shader_program *lookup_cs_shader_program(struct vrend_context *ctx, in lookup_cs_shader_program()
1417 static struct vrend_linked_shader_program *lookup_shader_program(struct vrend_context *ctx, in lookup_shader_program()
1493 int vrend_create_surface(struct vrend_context *ctx, in vrend_create_surface()
1668 int vrend_create_sampler_state(struct vrend_context *ctx, in vrend_create_sampler_state()
1729 int vrend_create_sampler_view(struct vrend_context *ctx, in vrend_create_sampler_view()
1934 static void vrend_hw_set_zsurf_texture(struct vrend_context *ctx) in vrend_hw_set_zsurf_texture()
1953 static void vrend_hw_set_color_surface(struct vrend_context *ctx, int index) in vrend_hw_set_color_surface()
1971 static void vrend_hw_emit_framebuffer_state(struct vrend_context *ctx) in vrend_hw_emit_framebuffer_state()
2012 void vrend_set_framebuffer_state(struct vrend_context *ctx, in vrend_set_framebuffer_state()
2109 void vrend_set_framebuffer_state_no_attach(UNUSED struct vrend_context *ctx, in vrend_set_framebuffer_state_no_attach()
2129 void vrend_set_viewport_states(struct vrend_context *ctx, in vrend_set_viewport_states()
2199 int vrend_create_vertex_elements_state(struct vrend_context *ctx, in vrend_create_vertex_elements_state()
2305 void vrend_bind_vertex_elements_state(struct vrend_context *ctx, in vrend_bind_vertex_elements_state()
2325 void vrend_set_constants(struct vrend_context *ctx, in vrend_set_constants()
2346 void vrend_set_uniform_buffer(struct vrend_context *ctx, in vrend_set_uniform_buffer()
2378 void vrend_set_index_buffer(struct vrend_context *ctx, in vrend_set_index_buffer()
2405 void vrend_set_single_vbo(struct vrend_context *ctx, in vrend_set_single_vbo()
2436 void vrend_set_num_vbo(struct vrend_context *ctx, in vrend_set_num_vbo()
2455 void vrend_set_single_sampler_view(struct vrend_context *ctx, in vrend_set_single_sampler_view()
2556 void vrend_set_num_sampler_views(struct vrend_context *ctx, in vrend_set_num_sampler_views()
2570 void vrend_set_single_image_view(struct vrend_context *ctx, in vrend_set_single_image_view()
2602 void vrend_set_single_ssbo(struct vrend_context *ctx, in vrend_set_single_ssbo()
2632 void vrend_memory_barrier(UNUSED struct vrend_context *ctx, in vrend_memory_barrier()
2670 void vrend_texture_barrier(UNUSED struct vrend_context *ctx, in vrend_texture_barrier()
2687 static inline void vrend_fill_shader_key(struct vrend_context *ctx, in vrend_fill_shader_key()
2807 static int vrend_shader_create(struct vrend_context *ctx, in vrend_shader_create()
2839 static int vrend_shader_select(struct vrend_context *ctx, in vrend_shader_select()
2886 static void *vrend_create_shader_state(UNUSED struct vrend_context *ctx, in vrend_create_shader_state()
2904 static int vrend_finish_shader(struct vrend_context *ctx, in vrend_finish_shader()
2919 int vrend_create_shader(struct vrend_context *ctx, in vrend_create_shader()
3067 void vrend_bind_shader(struct vrend_context *ctx, in vrend_bind_shader()
3102 void vrend_clear(struct vrend_context *ctx, in vrend_clear()
3240 static void vrend_update_scissor_state(struct vrend_context *ctx) in vrend_update_scissor_state()
3273 static void vrend_update_viewport_state(struct vrend_context *ctx) in vrend_update_viewport_state()
3347 static void vrend_draw_bind_vertex_legacy(struct vrend_context *ctx, in vrend_draw_bind_vertex_legacy()
3452 static void vrend_draw_bind_vertex_binding(struct vrend_context *ctx, in vrend_draw_bind_vertex_binding()
3477 static void vrend_draw_bind_samplers_shader(struct vrend_context *ctx, in vrend_draw_bind_samplers_shader()
3538 static void vrend_draw_bind_ubo_shader(struct vrend_context *ctx, in vrend_draw_bind_ubo_shader()
3583 static void vrend_draw_bind_const_shader(struct vrend_context *ctx, in vrend_draw_bind_const_shader()
3597 static void vrend_draw_bind_ssbo_shader(struct vrend_context *ctx, int shader_type) in vrend_draw_bind_ssbo_shader()
3630 static void vrend_draw_bind_images_shader(struct vrend_context *ctx, int shader_type) in vrend_draw_bind_images_shader()
3696 static void vrend_draw_bind_objects(struct vrend_context *ctx, bool new_program) in vrend_draw_bind_objects()
3715 int vrend_draw_vbo(struct vrend_context *ctx, in vrend_draw_vbo()
3986 void vrend_launch_grid(struct vrend_context *ctx, in vrend_launch_grid()
4192 static void vrend_hw_emit_blend(struct vrend_context *ctx, struct pipe_blend_state *state) in vrend_hw_emit_blend()
4295 static void vrend_patch_blend_state(struct vrend_context *ctx) in vrend_patch_blend_state()
4351 void vrend_object_bind_blend(struct vrend_context *ctx, in vrend_object_bind_blend()
4373 static void vrend_hw_emit_dsa(struct vrend_context *ctx) in vrend_hw_emit_dsa()
4396 void vrend_object_bind_dsa(struct vrend_context *ctx, in vrend_object_bind_dsa()
4426 static void vrend_update_frontface_state(struct vrend_context *ctx) in vrend_update_frontface_state()
4438 void vrend_update_stencil_state(struct vrend_context *ctx) in vrend_update_stencil_state()
4493 static void vrend_hw_emit_rs(struct vrend_context *ctx) in vrend_hw_emit_rs()
4741 void vrend_object_bind_rasterizer(struct vrend_context *ctx, in vrend_object_bind_rasterizer()
4764 void vrend_bind_sampler_states(struct vrend_context *ctx, in vrend_bind_sampler_states()
4797 static void vrend_apply_sampler_state(struct vrend_context *ctx, in vrend_apply_sampler_state()
5288 bool vrend_destroy_context(struct vrend_context *ctx) in vrend_destroy_context()
5291 struct vrend_context *cur = vrend_state.current_ctx; in vrend_destroy_context()
5334 struct vrend_context *vrend_create_context(int id, uint32_t nlen, const char *debug_name) in vrend_create_context()
5336 struct vrend_context *grctx = CALLOC_STRUCT(vrend_context); in vrend_create_context()
5770 struct vrend_context *ctx; in vrend_renderer_resource_unref()
5993 static int vrend_renderer_transfer_write_iov(struct vrend_context *ctx, in vrend_renderer_transfer_write_iov()
6237 static int vrend_transfer_send_getteximage(struct vrend_context *ctx, in vrend_transfer_send_getteximage()
6315 static int vrend_transfer_send_readpixels(struct vrend_context *ctx, in vrend_transfer_send_readpixels()
6470 static int vrend_transfer_send_readonly(UNUSED struct vrend_context *ctx, in vrend_transfer_send_readonly()
6503 static int vrend_renderer_transfer_send_iov(struct vrend_context *ctx, in vrend_renderer_transfer_send_iov()
6554 struct vrend_context *ctx; in vrend_renderer_transfer_iov()
6606 int vrend_transfer_inline_write(struct vrend_context *ctx, in vrend_transfer_inline_write()
6632 void vrend_set_stencil_ref(struct vrend_context *ctx, in vrend_set_stencil_ref()
6643 void vrend_set_blend_color(struct vrend_context *ctx, in vrend_set_blend_color()
6651 void vrend_set_scissor_state(struct vrend_context *ctx, in vrend_set_scissor_state()
6671 void vrend_set_polygon_stipple(struct vrend_context *ctx, in vrend_set_polygon_stipple()
6704 void vrend_set_clip_state(struct vrend_context *ctx, struct pipe_clip_state *ucp) in vrend_set_clip_state()
6720 void vrend_set_sample_mask(UNUSED struct vrend_context *ctx, unsigned sample_mask) in vrend_set_sample_mask()
6726 void vrend_set_min_samples(struct vrend_context *ctx, unsigned min_samples) in vrend_set_min_samples()
6738 void vrend_set_tess_state(UNUSED struct vrend_context *ctx, const float tess_factors[6]) in vrend_set_tess_state()
6746 static void vrend_hw_emit_streamout_targets(UNUSED struct vrend_context *ctx, struct vrend_streamou… in vrend_hw_emit_streamout_targets()
6758 void vrend_set_streamout_targets(struct vrend_context *ctx, in vrend_set_streamout_targets()
6813 static void vrend_resource_buffer_copy(UNUSED struct vrend_context *ctx, in vrend_resource_buffer_copy()
7007 void vrend_renderer_resource_copy_region(struct vrend_context *ctx, in vrend_renderer_resource_copy_region()
7097 static void vrend_renderer_blit_int(struct vrend_context *ctx, in vrend_renderer_blit_int()
7307 void vrend_renderer_blit(struct vrend_context *ctx, in vrend_renderer_blit()
7494 bool vrend_hw_switch_context(struct vrend_context *ctx, bool now) in vrend_hw_switch_context()
7511 static void vrend_finish_context_switch(struct vrend_context *ctx) in vrend_finish_context_switch()
7526 vrend_renderer_object_destroy(struct vrend_context *ctx, uint32_t handle) in vrend_renderer_object_destroy()
7531 uint32_t vrend_renderer_object_insert(struct vrend_context *ctx, void *data, in vrend_renderer_object_insert()
7537 int vrend_create_query(struct vrend_context *ctx, uint32_t handle, in vrend_create_query()
7623 int vrend_begin_query(struct vrend_context *ctx, uint32_t handle) in vrend_begin_query()
7644 int vrend_end_query(struct vrend_context *ctx, uint32_t handle) in vrend_end_query()
7673 void vrend_get_query_result(struct vrend_context *ctx, uint32_t handle, in vrend_get_query_result()
7688 static void vrend_pause_render_condition(struct vrend_context *ctx, bool pause) in vrend_pause_render_condition()
7709 void vrend_render_condition(struct vrend_context *ctx, in vrend_render_condition()
7758 int vrend_create_so_target(struct vrend_context *ctx, in vrend_create_so_target()
8326 struct vrend_context *ctx0 = vrend_lookup_renderer_ctx(0); in vrend_renderer_force_ctx_0()
8363 struct vrend_context *ctx = vrend_lookup_renderer_ctx(ctx_id); in vrend_renderer_attach_res_ctx()
8376 static void vrend_renderer_detach_res_ctx_p(struct vrend_context *ctx, int res_handle) in vrend_renderer_detach_res_ctx_p()
8388 struct vrend_context *ctx = vrend_lookup_renderer_ctx(ctx_id); in vrend_renderer_detach_res_ctx()
8394 static struct vrend_resource *vrend_renderer_ctx_res_lookup(struct vrend_context *ctx, int res_hand… in vrend_renderer_ctx_res_lookup()
8447 void vrend_renderer_create_sub_ctx(struct vrend_context *ctx, int sub_ctx_id) in vrend_renderer_create_sub_ctx()
8502 void vrend_renderer_destroy_sub_ctx(struct vrend_context *ctx, int sub_ctx_id) in vrend_renderer_destroy_sub_ctx()
8525 void vrend_renderer_set_sub_ctx(struct vrend_context *ctx, int sub_ctx_id) in vrend_renderer_set_sub_ctx()