Lines Matching refs:grctx
48 struct vrend_context *grctx; member
118 …ret = vrend_create_shader(ctx->grctx, handle, &so_info, req_local_mem, (const char *)shd_text, off… in vrend_decode_create_shader()
134 return vrend_create_so_target(ctx->grctx, handle, res_handle, buffer_offset, in vrend_decode_create_stream_output_target()
156 vrend_set_framebuffer_state(ctx->grctx, nr_cbufs, surf_handle, zsurf_handle); in vrend_decode_set_framebuffer_state()
177 vrend_set_framebuffer_state_no_attach(ctx->grctx, width, height, layers, samples); in vrend_decode_set_framebuffer_state_no_attach()
196 vrend_clear(ctx->grctx, buffers, &color, depth, stencil); in vrend_decode_clear()
232 vrend_set_viewport_states(ctx->grctx, start_slot, num_viewports, vps); in vrend_decode_set_viewport_state()
240 vrend_set_index_buffer(ctx->grctx, in vrend_decode_set_index_buffer()
262 …vrend_set_constants(ctx->grctx, shader, index, nc, get_buf_ptr(ctx, VIRGL_SET_CONSTANT_BUFFER_DATA… in vrend_decode_set_constant_buffer()
283 vrend_set_uniform_buffer(ctx->grctx, shader, index, offset, blength, handle); in vrend_decode_set_uniform_buffer()
301 vrend_set_single_vbo(ctx->grctx, i, in vrend_decode_set_vertex_buffers()
306 vrend_set_num_vbo(ctx->grctx, num_vbo); in vrend_decode_set_vertex_buffers()
332 vrend_set_single_sampler_view(ctx->grctx, shader_type, i + start_slot, handle); in vrend_decode_set_sampler_views()
334 vrend_set_num_sampler_views(ctx->grctx, shader_type, start_slot, num_samps); in vrend_decode_set_sampler_views()
381 return vrend_transfer_inline_write(ctx->grctx, &info, usage); in vrend_decode_resource_inline_write()
422 return vrend_draw_vbo(ctx->grctx, &info, cso, handle, indirect_draw_count_handle); in vrend_decode_draw_vbo()
461 …tmp = vrend_renderer_object_insert(ctx->grctx, blend_state, sizeof(struct pipe_blend_state), handl… in vrend_decode_create_blend()
505 …tmp = vrend_renderer_object_insert(ctx->grctx, dsa_state, sizeof(struct pipe_depth_stencil_alpha_s… in vrend_decode_create_dsa()
571 …tmp = vrend_renderer_object_insert(ctx->grctx, rs_state, sizeof(struct pipe_rasterizer_state), han… in vrend_decode_create_rasterizer()
593 ret = vrend_create_surface(ctx->grctx, handle, res_handle, format, val0, val1); in vrend_decode_create_surface()
609 …return vrend_create_sampler_view(ctx->grctx, handle, res_handle, format, val0, val1,swizzle_packed… in vrend_decode_create_sampler_view()
637 return vrend_create_sampler_state(ctx->grctx, handle, &state); in vrend_decode_create_sampler_state()
675 ret = vrend_create_vertex_elements_state(ctx->grctx, handle, num_elements, ve); in vrend_decode_create_ve()
699 return vrend_create_query(ctx->grctx, handle, query_type, query_index, res_handle, offset); in vrend_decode_create_query()
764 vrend_object_bind_blend(ctx->grctx, handle); in vrend_decode_bind_object()
767 vrend_object_bind_dsa(ctx->grctx, handle); in vrend_decode_bind_object()
770 vrend_object_bind_rasterizer(ctx->grctx, handle); in vrend_decode_bind_object()
773 vrend_bind_vertex_elements_state(ctx->grctx, handle); in vrend_decode_bind_object()
789 vrend_renderer_object_destroy(ctx->grctx, handle); in vrend_decode_destroy_object()
803 vrend_set_stencil_ref(ctx->grctx, &ref); in vrend_decode_set_stencil_ref()
818 vrend_set_blend_color(ctx->grctx, &color); in vrend_decode_set_blend_color()
851 vrend_set_scissor_state(ctx->grctx, start_slot, num_scissor, ss); in vrend_decode_set_scissor_state()
866 vrend_set_polygon_stipple(ctx->grctx, &ps); in vrend_decode_set_polygon_stipple()
881 vrend_set_clip_state(ctx->grctx, &clip); in vrend_decode_set_clip_state()
892 vrend_set_sample_mask(ctx->grctx, mask); in vrend_decode_set_sample_mask()
903 vrend_set_min_samples(ctx->grctx, min_samples); in vrend_decode_set_min_samples()
931 vrend_renderer_resource_copy_region(ctx->grctx, dst_handle, in vrend_decode_resource_copy_region()
978 vrend_renderer_blit(ctx->grctx, dst_handle, src_handle, &info); in vrend_decode_blit()
994 vrend_bind_sampler_states(ctx->grctx, shader_type, start_slot, num_states, in vrend_decode_bind_sampler_states()
1006 return vrend_begin_query(ctx->grctx, handle); in vrend_decode_begin_query()
1016 return vrend_end_query(ctx->grctx, handle); in vrend_decode_end_query()
1027 vrend_get_query_result(ctx->grctx, handle, wait); in vrend_decode_get_query_result()
1040 vrend_render_condition(ctx->grctx, handle, condition, mode); in vrend_decode_set_render_condition()
1051 vrend_renderer_set_sub_ctx(ctx->grctx, ctx_sub_id); in vrend_decode_set_sub_ctx()
1062 vrend_renderer_create_sub_ctx(ctx->grctx, ctx_sub_id); in vrend_decode_create_sub_ctx()
1073 vrend_renderer_destroy_sub_ctx(ctx->grctx, ctx_sub_id); in vrend_decode_destroy_sub_ctx()
1086 vrend_bind_shader(ctx->grctx, handle, type); in vrend_decode_bind_shader()
1102 vrend_set_tess_state(ctx->grctx, tess_factors); in vrend_decode_set_tess_state()
1130 vrend_set_single_ssbo(ctx->grctx, shader_type, start_slot + i, offset, buf_len, in vrend_decode_set_shader_buffers()
1161 vrend_set_single_image_view(ctx->grctx, shader_type, start_slot + i, format, access, in vrend_decode_set_shader_images()
1173 vrend_memory_barrier(ctx->grctx, flags); in vrend_decode_memory_barrier()
1192 vrend_launch_grid(ctx->grctx, block, grid, indirect_handle, indirect_offset); in vrend_decode_launch_grid()
1212 vrend_set_streamout_targets(ctx->grctx, append_bitmask, num_handles, handles); in vrend_decode_set_streamout_targets()
1222 vrend_texture_barrier(ctx->grctx, flags); in vrend_decode_texture_barrier()
1242 dctx->grctx = vrend_create_context(handle, nlen, debug_name); in vrend_renderer_context_create_internal()
1243 if (!dctx->grctx) { in vrend_renderer_context_create_internal()
1283 ret = vrend_destroy_context(ctx->grctx); in vrend_renderer_context_destroy()
1287 vrend_hw_switch_context(dec_ctx[0]->grctx, true); in vrend_renderer_context_destroy()
1298 return dec_ctx[ctx_id]->grctx; in vrend_lookup_renderer_ctx()
1314 bret = vrend_hw_switch_context(gdctx->grctx, true); in vrend_decode_block()
1329 vrend_report_buffer_error(gdctx->grctx, 0); in vrend_decode_block()
1457 vrend_report_buffer_error(gdctx->grctx, header); in vrend_decode_block()
1473 vrend_hw_switch_context(dec_ctx[0]->grctx, true); in vrend_decode_reset()
1480 if (!dec_ctx[i]->grctx) in vrend_decode_reset()
1483 vrend_destroy_context(dec_ctx[i]->grctx); in vrend_decode_reset()
1488 vrend_destroy_context(dec_ctx[0]->grctx); in vrend_decode_reset()