• Home
  • Raw
  • Download

Lines Matching full:context

39    struct tegra_context *context = to_tegra_context(pcontext);  in tegra_destroy()  local
41 if (context->base.stream_uploader) in tegra_destroy()
42 u_upload_destroy(context->base.stream_uploader); in tegra_destroy()
44 context->gpu->destroy(context->gpu); in tegra_destroy()
45 free(context); in tegra_destroy()
64 struct tegra_context *context = to_tegra_context(pcontext); in tegra_draw_vbo() local
84 context->gpu->draw_vbo(context->gpu, pinfo, drawid_offset, pindirect, draws, num_draws); in tegra_draw_vbo()
93 struct tegra_context *context = to_tegra_context(pcontext); in tegra_render_condition() local
95 context->gpu->render_condition(context->gpu, query, condition, mode); in tegra_render_condition()
102 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_query() local
104 return context->gpu->create_query(context->gpu, query_type, index); in tegra_create_query()
112 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_batch_query() local
114 return context->gpu->create_batch_query(context->gpu, num_queries, in tegra_create_batch_query()
121 struct tegra_context *context = to_tegra_context(pcontext); in tegra_destroy_query() local
123 context->gpu->destroy_query(context->gpu, query); in tegra_destroy_query()
129 struct tegra_context *context = to_tegra_context(pcontext); in tegra_begin_query() local
131 return context->gpu->begin_query(context->gpu, query); in tegra_begin_query()
137 struct tegra_context *context = to_tegra_context(pcontext); in tegra_end_query() local
139 return context->gpu->end_query(context->gpu, query); in tegra_end_query()
148 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_query_result() local
150 return context->gpu->get_query_result(context->gpu, query, wait, in tegra_get_query_result()
163 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_query_result_resource() local
165 context->gpu->get_query_result_resource(context->gpu, query, flags, in tegra_get_query_result_resource()
173 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_active_query_state() local
175 context->gpu->set_active_query_state(context->gpu, enable); in tegra_set_active_query_state()
182 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_blend_state() local
184 return context->gpu->create_blend_state(context->gpu, cso); in tegra_create_blend_state()
190 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_blend_state() local
192 context->gpu->bind_blend_state(context->gpu, so); in tegra_bind_blend_state()
198 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_blend_state() local
200 context->gpu->delete_blend_state(context->gpu, so); in tegra_delete_blend_state()
207 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_sampler_state() local
209 return context->gpu->create_sampler_state(context->gpu, cso); in tegra_create_sampler_state()
217 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_sampler_states() local
219 context->gpu->bind_sampler_states(context->gpu, shader, start_slot, in tegra_bind_sampler_states()
226 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_sampler_state() local
228 context->gpu->delete_sampler_state(context->gpu, so); in tegra_delete_sampler_state()
235 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_rasterizer_state() local
237 return context->gpu->create_rasterizer_state(context->gpu, cso); in tegra_create_rasterizer_state()
243 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_rasterizer_state() local
245 context->gpu->bind_rasterizer_state(context->gpu, so); in tegra_bind_rasterizer_state()
251 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_rasterizer_state() local
253 context->gpu->delete_rasterizer_state(context->gpu, so); in tegra_delete_rasterizer_state()
260 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_depth_stencil_alpha_state() local
262 return context->gpu->create_depth_stencil_alpha_state(context->gpu, cso); in tegra_create_depth_stencil_alpha_state()
268 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_depth_stencil_alpha_state() local
270 context->gpu->bind_depth_stencil_alpha_state(context->gpu, so); in tegra_bind_depth_stencil_alpha_state()
276 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_depth_stencil_alpha_state() local
278 context->gpu->delete_depth_stencil_alpha_state(context->gpu, so); in tegra_delete_depth_stencil_alpha_state()
285 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_fs_state() local
287 return context->gpu->create_fs_state(context->gpu, cso); in tegra_create_fs_state()
293 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_fs_state() local
295 context->gpu->bind_fs_state(context->gpu, so); in tegra_bind_fs_state()
301 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_fs_state() local
303 context->gpu->delete_fs_state(context->gpu, so); in tegra_delete_fs_state()
310 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_vs_state() local
312 return context->gpu->create_vs_state(context->gpu, cso); in tegra_create_vs_state()
318 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_vs_state() local
320 context->gpu->bind_vs_state(context->gpu, so); in tegra_bind_vs_state()
326 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_vs_state() local
328 context->gpu->delete_vs_state(context->gpu, so); in tegra_delete_vs_state()
335 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_gs_state() local
337 return context->gpu->create_gs_state(context->gpu, cso); in tegra_create_gs_state()
343 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_gs_state() local
345 context->gpu->bind_gs_state(context->gpu, so); in tegra_bind_gs_state()
351 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_gs_state() local
353 context->gpu->delete_gs_state(context->gpu, so); in tegra_delete_gs_state()
360 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_tcs_state() local
362 return context->gpu->create_tcs_state(context->gpu, cso); in tegra_create_tcs_state()
368 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_tcs_state() local
370 context->gpu->bind_tcs_state(context->gpu, so); in tegra_bind_tcs_state()
376 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_tcs_state() local
378 context->gpu->delete_tcs_state(context->gpu, so); in tegra_delete_tcs_state()
385 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_tes_state() local
387 return context->gpu->create_tes_state(context->gpu, cso); in tegra_create_tes_state()
393 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_tes_state() local
395 context->gpu->bind_tes_state(context->gpu, so); in tegra_bind_tes_state()
401 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_tes_state() local
403 context->gpu->delete_tes_state(context->gpu, so); in tegra_delete_tes_state()
411 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_vertex_elements_state() local
413 return context->gpu->create_vertex_elements_state(context->gpu, in tegra_create_vertex_elements_state()
421 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_vertex_elements_state() local
423 context->gpu->bind_vertex_elements_state(context->gpu, so); in tegra_bind_vertex_elements_state()
429 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_vertex_elements_state() local
431 context->gpu->delete_vertex_elements_state(context->gpu, so); in tegra_delete_vertex_elements_state()
438 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_blend_color() local
440 context->gpu->set_blend_color(context->gpu, color); in tegra_set_blend_color()
447 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_stencil_ref() local
449 context->gpu->set_stencil_ref(context->gpu, ref); in tegra_set_stencil_ref()
455 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_sample_mask() local
457 context->gpu->set_sample_mask(context->gpu, mask); in tegra_set_sample_mask()
463 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_min_samples() local
465 context->gpu->set_min_samples(context->gpu, samples); in tegra_set_min_samples()
472 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_clip_state() local
474 context->gpu->set_clip_state(context->gpu, state); in tegra_set_clip_state()
482 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_constant_buffer() local
491 context->gpu->set_constant_buffer(context->gpu, shader, index, take_ownership, buf); in tegra_set_constant_buffer()
498 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_framebuffer_state() local
516 context->gpu->set_framebuffer_state(context->gpu, fb); in tegra_set_framebuffer_state()
523 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_polygon_stipple() local
525 context->gpu->set_polygon_stipple(context->gpu, stipple); in tegra_set_polygon_stipple()
533 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_scissor_states() local
535 context->gpu->set_scissor_states(context->gpu, start_slot, num_scissors, in tegra_set_scissor_states()
544 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_window_rectangles() local
546 context->gpu->set_window_rectangles(context->gpu, include, num_rectangles, in tegra_set_window_rectangles()
555 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_viewport_states() local
557 context->gpu->set_viewport_states(context->gpu, start_slot, num_viewports, in tegra_set_viewport_states()
569 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_sampler_views() local
587 context->gpu->set_sampler_views(context->gpu, shader, start_slot, in tegra_set_sampler_views()
597 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_tess_state() local
599 context->gpu->set_tess_state(context->gpu, default_outer_level, in tegra_set_tess_state()
607 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_debug_callback() local
609 context->gpu->set_debug_callback(context->gpu, callback); in tegra_set_debug_callback()
618 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_shader_buffers() local
620 context->gpu->set_shader_buffers(context->gpu, shader, start, count, in tegra_set_shader_buffers()
630 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_shader_images() local
632 context->gpu->set_shader_images(context->gpu, shader, start, count, in tegra_set_shader_images()
642 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_vertex_buffers() local
657 context->gpu->set_vertex_buffers(context->gpu, start_slot, num_buffers, in tegra_set_vertex_buffers()
669 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_stream_output_target() local
671 return context->gpu->create_stream_output_target(context->gpu, in tegra_create_stream_output_target()
681 struct tegra_context *context = to_tegra_context(pcontext); in tegra_stream_output_target_destroy() local
683 context->gpu->stream_output_target_destroy(context->gpu, target); in tegra_stream_output_target_destroy()
692 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_stream_output_targets() local
694 context->gpu->set_stream_output_targets(context->gpu, num_targets, in tegra_set_stream_output_targets()
709 struct tegra_context *context = to_tegra_context(pcontext); in tegra_resource_copy_region() local
713 context->gpu->resource_copy_region(context->gpu, dst->gpu, dst_level, dstx, in tegra_resource_copy_region()
721 struct tegra_context *context = to_tegra_context(pcontext); in tegra_blit() local
731 context->gpu->blit(context->gpu, pinfo); in tegra_blit()
739 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear() local
741 context->gpu->clear(context->gpu, buffers, NULL, color, depth, stencil); in tegra_clear()
754 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear_render_target() local
757 context->gpu->clear_render_target(context->gpu, dst->gpu, color, dstx, in tegra_clear_render_target()
773 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear_depth_stencil() local
776 context->gpu->clear_depth_stencil(context->gpu, dst->gpu, flags, depth, in tegra_clear_depth_stencil()
789 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear_texture() local
791 context->gpu->clear_texture(context->gpu, resource->gpu, level, box, data); in tegra_clear_texture()
803 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear_buffer() local
805 context->gpu->clear_buffer(context->gpu, resource->gpu, offset, size, in tegra_clear_buffer()
813 struct tegra_context *context = to_tegra_context(pcontext); in tegra_flush() local
815 context->gpu->flush(context->gpu, fence, flags); in tegra_flush()
823 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_fence_fd() local
826 context->gpu->create_fence_fd(context->gpu, fence, fd, type); in tegra_create_fence_fd()
833 struct tegra_context *context = to_tegra_context(pcontext); in tegra_fence_server_sync() local
835 context->gpu->fence_server_sync(context->gpu, fence); in tegra_fence_server_sync()
844 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_sampler_view() local
852 view->base.context = pcontext; in tegra_create_sampler_view()
858 view->gpu = context->gpu->create_sampler_view(context->gpu, resource->gpu, in tegra_create_sampler_view()
887 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_surface() local
894 surface->gpu = context->gpu->create_surface(context->gpu, resource->gpu, in tegra_create_surface()
907 surface->base.context = &context->base; in tegra_create_surface()
931 struct tegra_context *context = to_tegra_context(pcontext); in tegra_transfer_map() local
939 transfer->map = context->gpu->buffer_map(context->gpu, resource->gpu, in tegra_transfer_map()
943 transfer->map = context->gpu->texture_map(context->gpu, resource->gpu, in tegra_transfer_map()
962 struct tegra_context *context = to_tegra_context(pcontext); in tegra_transfer_flush_region() local
964 context->gpu->transfer_flush_region(context->gpu, transfer->gpu, box); in tegra_transfer_flush_region()
972 struct tegra_context *context = to_tegra_context(pcontext); in tegra_transfer_unmap() local
975 context->gpu->buffer_unmap(context->gpu, transfer->gpu); in tegra_transfer_unmap()
977 context->gpu->texture_unmap(context->gpu, transfer->gpu); in tegra_transfer_unmap()
989 struct tegra_context *context = to_tegra_context(pcontext); in tegra_buffer_subdata() local
991 context->gpu->buffer_subdata(context->gpu, resource->gpu, usage, offset, in tegra_buffer_subdata()
1006 struct tegra_context *context = to_tegra_context(pcontext); in tegra_texture_subdata() local
1008 context->gpu->texture_subdata(context->gpu, resource->gpu, level, usage, in tegra_texture_subdata()
1015 struct tegra_context *context = to_tegra_context(pcontext); in tegra_texture_barrier() local
1017 context->gpu->texture_barrier(context->gpu, flags); in tegra_texture_barrier()
1023 struct tegra_context *context = to_tegra_context(pcontext); in tegra_memory_barrier() local
1028 context->gpu->memory_barrier(context->gpu, flags); in tegra_memory_barrier()
1035 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_video_codec() local
1037 return context->gpu->create_video_codec(context->gpu, template); in tegra_create_video_codec()
1044 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_video_buffer() local
1046 return context->gpu->create_video_buffer(context->gpu, template); in tegra_create_video_buffer()
1053 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_compute_state() local
1055 return context->gpu->create_compute_state(context->gpu, template); in tegra_create_compute_state()
1061 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_compute_state() local
1063 context->gpu->bind_compute_state(context->gpu, so); in tegra_bind_compute_state()
1069 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_compute_state() local
1071 context->gpu->delete_compute_state(context->gpu, so); in tegra_delete_compute_state()
1079 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_compute_resources() local
1083 context->gpu->set_compute_resources(context->gpu, start, count, resources); in tegra_set_compute_resources()
1091 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_global_binding() local
1095 context->gpu->set_global_binding(context->gpu, first, count, resources, in tegra_set_global_binding()
1103 struct tegra_context *context = to_tegra_context(pcontext); in tegra_launch_grid() local
1107 context->gpu->launch_grid(context->gpu, info); in tegra_launch_grid()
1114 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_sample_position() local
1116 context->gpu->get_sample_position(context->gpu, count, index, value); in tegra_get_sample_position()
1122 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_timestamp() local
1124 return context->gpu->get_timestamp(context->gpu); in tegra_get_timestamp()
1132 struct tegra_context *context = to_tegra_context(pcontext); in tegra_flush_resource() local
1134 context->gpu->flush_resource(context->gpu, resource->gpu); in tegra_flush_resource()
1142 struct tegra_context *context = to_tegra_context(pcontext); in tegra_invalidate_resource() local
1144 context->gpu->invalidate_resource(context->gpu, resource->gpu); in tegra_invalidate_resource()
1150 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_device_reset_status() local
1152 return context->gpu->get_device_reset_status(context->gpu); in tegra_get_device_reset_status()
1159 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_device_reset_callback() local
1161 context->gpu->set_device_reset_callback(context->gpu, cb); in tegra_set_device_reset_callback()
1168 struct tegra_context *context = to_tegra_context(pcontext); in tegra_dump_debug_state() local
1170 context->gpu->dump_debug_state(context->gpu, stream, flags); in tegra_dump_debug_state()
1177 struct tegra_context *context = to_tegra_context(pcontext); in tegra_emit_string_marker() local
1179 context->gpu->emit_string_marker(context->gpu, string, length); in tegra_emit_string_marker()
1192 struct tegra_context *context = to_tegra_context(pcontext); in tegra_generate_mipmap() local
1194 return context->gpu->generate_mipmap(context->gpu, resource->gpu, format, in tegra_generate_mipmap()
1204 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_texture_handle() local
1206 return context->gpu->create_texture_handle(context->gpu, view, state); in tegra_create_texture_handle()
1212 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_texture_handle() local
1214 context->gpu->delete_texture_handle(context->gpu, handle); in tegra_delete_texture_handle()
1220 struct tegra_context *context = to_tegra_context(pcontext); in tegra_make_texture_handle_resident() local
1222 context->gpu->make_texture_handle_resident(context->gpu, handle, resident); in tegra_make_texture_handle_resident()
1228 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_image_handle() local
1230 return context->gpu->create_image_handle(context->gpu, image); in tegra_create_image_handle()
1236 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_image_handle() local
1238 context->gpu->delete_image_handle(context->gpu, handle); in tegra_delete_image_handle()
1245 struct tegra_context *context = to_tegra_context(pcontext); in tegra_make_image_handle_resident() local
1247 context->gpu->make_image_handle_resident(context->gpu, handle, access, in tegra_make_image_handle_resident()
1256 struct tegra_context *context; in tegra_screen_context_create() local
1258 context = calloc(1, sizeof(*context)); in tegra_screen_context_create()
1259 if (!context) in tegra_screen_context_create()
1262 context->gpu = screen->gpu->context_create(screen->gpu, priv, flags); in tegra_screen_context_create()
1263 if (!context->gpu) { in tegra_screen_context_create()
1264 debug_error("failed to create GPU context\n"); in tegra_screen_context_create()
1268 context->base.screen = &screen->base; in tegra_screen_context_create()
1269 context->base.priv = priv; in tegra_screen_context_create()
1275 * uploaders create resources based on the context that they were created in tegra_screen_context_create()
1276 * from, which means that nouveau's uploader will use the nouveau context in tegra_screen_context_create()
1286 context->base.stream_uploader = u_upload_create_default(&context->base); in tegra_screen_context_create()
1287 if (!context->base.stream_uploader) in tegra_screen_context_create()
1290 context->base.const_uploader = context->base.stream_uploader; in tegra_screen_context_create()
1292 context->base.destroy = tegra_destroy; in tegra_screen_context_create()
1294 context->base.draw_vbo = tegra_draw_vbo; in tegra_screen_context_create()
1296 context->base.render_condition = tegra_render_condition; in tegra_screen_context_create()
1298 context->base.create_query = tegra_create_query; in tegra_screen_context_create()
1299 context->base.create_batch_query = tegra_create_batch_query; in tegra_screen_context_create()
1300 context->base.destroy_query = tegra_destroy_query; in tegra_screen_context_create()
1301 context->base.begin_query = tegra_begin_query; in tegra_screen_context_create()
1302 context->base.end_query = tegra_end_query; in tegra_screen_context_create()
1303 context->base.get_query_result = tegra_get_query_result; in tegra_screen_context_create()
1304 context->base.get_query_result_resource = tegra_get_query_result_resource; in tegra_screen_context_create()
1305 context->base.set_active_query_state = tegra_set_active_query_state; in tegra_screen_context_create()
1307 context->base.create_blend_state = tegra_create_blend_state; in tegra_screen_context_create()
1308 context->base.bind_blend_state = tegra_bind_blend_state; in tegra_screen_context_create()
1309 context->base.delete_blend_state = tegra_delete_blend_state; in tegra_screen_context_create()
1311 context->base.create_sampler_state = tegra_create_sampler_state; in tegra_screen_context_create()
1312 context->base.bind_sampler_states = tegra_bind_sampler_states; in tegra_screen_context_create()
1313 context->base.delete_sampler_state = tegra_delete_sampler_state; in tegra_screen_context_create()
1315 context->base.create_rasterizer_state = tegra_create_rasterizer_state; in tegra_screen_context_create()
1316 context->base.bind_rasterizer_state = tegra_bind_rasterizer_state; in tegra_screen_context_create()
1317 context->base.delete_rasterizer_state = tegra_delete_rasterizer_state; in tegra_screen_context_create()
1319 context->base.create_depth_stencil_alpha_state = tegra_create_depth_stencil_alpha_state; in tegra_screen_context_create()
1320 context->base.bind_depth_stencil_alpha_state = tegra_bind_depth_stencil_alpha_state; in tegra_screen_context_create()
1321 context->base.delete_depth_stencil_alpha_state = tegra_delete_depth_stencil_alpha_state; in tegra_screen_context_create()
1323 context->base.create_fs_state = tegra_create_fs_state; in tegra_screen_context_create()
1324 context->base.bind_fs_state = tegra_bind_fs_state; in tegra_screen_context_create()
1325 context->base.delete_fs_state = tegra_delete_fs_state; in tegra_screen_context_create()
1327 context->base.create_vs_state = tegra_create_vs_state; in tegra_screen_context_create()
1328 context->base.bind_vs_state = tegra_bind_vs_state; in tegra_screen_context_create()
1329 context->base.delete_vs_state = tegra_delete_vs_state; in tegra_screen_context_create()
1331 context->base.create_gs_state = tegra_create_gs_state; in tegra_screen_context_create()
1332 context->base.bind_gs_state = tegra_bind_gs_state; in tegra_screen_context_create()
1333 context->base.delete_gs_state = tegra_delete_gs_state; in tegra_screen_context_create()
1335 context->base.create_tcs_state = tegra_create_tcs_state; in tegra_screen_context_create()
1336 context->base.bind_tcs_state = tegra_bind_tcs_state; in tegra_screen_context_create()
1337 context->base.delete_tcs_state = tegra_delete_tcs_state; in tegra_screen_context_create()
1339 context->base.create_tes_state = tegra_create_tes_state; in tegra_screen_context_create()
1340 context->base.bind_tes_state = tegra_bind_tes_state; in tegra_screen_context_create()
1341 context->base.delete_tes_state = tegra_delete_tes_state; in tegra_screen_context_create()
1343 context->base.create_vertex_elements_state = tegra_create_vertex_elements_state; in tegra_screen_context_create()
1344 context->base.bind_vertex_elements_state = tegra_bind_vertex_elements_state; in tegra_screen_context_create()
1345 context->base.delete_vertex_elements_state = tegra_delete_vertex_elements_state; in tegra_screen_context_create()
1347 context->base.set_blend_color = tegra_set_blend_color; in tegra_screen_context_create()
1348 context->base.set_stencil_ref = tegra_set_stencil_ref; in tegra_screen_context_create()
1349 context->base.set_sample_mask = tegra_set_sample_mask; in tegra_screen_context_create()
1350 context->base.set_min_samples = tegra_set_min_samples; in tegra_screen_context_create()
1351 context->base.set_clip_state = tegra_set_clip_state; in tegra_screen_context_create()
1353 context->base.set_constant_buffer = tegra_set_constant_buffer; in tegra_screen_context_create()
1354 context->base.set_framebuffer_state = tegra_set_framebuffer_state; in tegra_screen_context_create()
1355 context->base.set_polygon_stipple = tegra_set_polygon_stipple; in tegra_screen_context_create()
1356 context->base.set_scissor_states = tegra_set_scissor_states; in tegra_screen_context_create()
1357 context->base.set_window_rectangles = tegra_set_window_rectangles; in tegra_screen_context_create()
1358 context->base.set_viewport_states = tegra_set_viewport_states; in tegra_screen_context_create()
1359 context->base.set_sampler_views = tegra_set_sampler_views; in tegra_screen_context_create()
1360 context->base.set_tess_state = tegra_set_tess_state; in tegra_screen_context_create()
1362 context->base.set_debug_callback = tegra_set_debug_callback; in tegra_screen_context_create()
1364 context->base.set_shader_buffers = tegra_set_shader_buffers; in tegra_screen_context_create()
1365 context->base.set_shader_images = tegra_set_shader_images; in tegra_screen_context_create()
1366 context->base.set_vertex_buffers = tegra_set_vertex_buffers; in tegra_screen_context_create()
1368 context->base.create_stream_output_target = tegra_create_stream_output_target; in tegra_screen_context_create()
1369 context->base.stream_output_target_destroy = tegra_stream_output_target_destroy; in tegra_screen_context_create()
1370 context->base.set_stream_output_targets = tegra_set_stream_output_targets; in tegra_screen_context_create()
1372 context->base.resource_copy_region = tegra_resource_copy_region; in tegra_screen_context_create()
1373 context->base.blit = tegra_blit; in tegra_screen_context_create()
1374 context->base.clear = tegra_clear; in tegra_screen_context_create()
1375 context->base.clear_render_target = tegra_clear_render_target; in tegra_screen_context_create()
1376 context->base.clear_depth_stencil = tegra_clear_depth_stencil; in tegra_screen_context_create()
1377 context->base.clear_texture = tegra_clear_texture; in tegra_screen_context_create()
1378 context->base.clear_buffer = tegra_clear_buffer; in tegra_screen_context_create()
1379 context->base.flush = tegra_flush; in tegra_screen_context_create()
1381 context->base.create_fence_fd = tegra_create_fence_fd; in tegra_screen_context_create()
1382 context->base.fence_server_sync = tegra_fence_server_sync; in tegra_screen_context_create()
1384 context->base.create_sampler_view = tegra_create_sampler_view; in tegra_screen_context_create()
1385 context->base.sampler_view_destroy = tegra_sampler_view_destroy; in tegra_screen_context_create()
1387 context->base.create_surface = tegra_create_surface; in tegra_screen_context_create()
1388 context->base.surface_destroy = tegra_surface_destroy; in tegra_screen_context_create()
1390 context->base.buffer_map = tegra_transfer_map; in tegra_screen_context_create()
1391 context->base.texture_map = tegra_transfer_map; in tegra_screen_context_create()
1392 context->base.transfer_flush_region = tegra_transfer_flush_region; in tegra_screen_context_create()
1393 context->base.buffer_unmap = tegra_transfer_unmap; in tegra_screen_context_create()
1394 context->base.texture_unmap = tegra_transfer_unmap; in tegra_screen_context_create()
1395 context->base.buffer_subdata = tegra_buffer_subdata; in tegra_screen_context_create()
1396 context->base.texture_subdata = tegra_texture_subdata; in tegra_screen_context_create()
1398 context->base.texture_barrier = tegra_texture_barrier; in tegra_screen_context_create()
1399 context->base.memory_barrier = tegra_memory_barrier; in tegra_screen_context_create()
1401 context->base.create_video_codec = tegra_create_video_codec; in tegra_screen_context_create()
1402 context->base.create_video_buffer = tegra_create_video_buffer; in tegra_screen_context_create()
1404 context->base.create_compute_state = tegra_create_compute_state; in tegra_screen_context_create()
1405 context->base.bind_compute_state = tegra_bind_compute_state; in tegra_screen_context_create()
1406 context->base.delete_compute_state = tegra_delete_compute_state; in tegra_screen_context_create()
1407 context->base.set_compute_resources = tegra_set_compute_resources; in tegra_screen_context_create()
1408 context->base.set_global_binding = tegra_set_global_binding; in tegra_screen_context_create()
1409 context->base.launch_grid = tegra_launch_grid; in tegra_screen_context_create()
1410 context->base.get_sample_position = tegra_get_sample_position; in tegra_screen_context_create()
1411 context->base.get_timestamp = tegra_get_timestamp; in tegra_screen_context_create()
1413 context->base.flush_resource = tegra_flush_resource; in tegra_screen_context_create()
1414 context->base.invalidate_resource = tegra_invalidate_resource; in tegra_screen_context_create()
1416 context->base.get_device_reset_status = tegra_get_device_reset_status; in tegra_screen_context_create()
1417 context->base.set_device_reset_callback = tegra_set_device_reset_callback; in tegra_screen_context_create()
1418 context->base.dump_debug_state = tegra_dump_debug_state; in tegra_screen_context_create()
1419 context->base.emit_string_marker = tegra_emit_string_marker; in tegra_screen_context_create()
1421 context->base.generate_mipmap = tegra_generate_mipmap; in tegra_screen_context_create()
1423 context->base.create_texture_handle = tegra_create_texture_handle; in tegra_screen_context_create()
1424 context->base.delete_texture_handle = tegra_delete_texture_handle; in tegra_screen_context_create()
1425 context->base.make_texture_handle_resident = tegra_make_texture_handle_resident; in tegra_screen_context_create()
1426 context->base.create_image_handle = tegra_create_image_handle; in tegra_screen_context_create()
1427 context->base.delete_image_handle = tegra_delete_image_handle; in tegra_screen_context_create()
1428 context->base.make_image_handle_resident = tegra_make_image_handle_resident; in tegra_screen_context_create()
1430 return &context->base; in tegra_screen_context_create()
1433 context->gpu->destroy(context->gpu); in tegra_screen_context_create()
1435 free(context); in tegra_screen_context_create()