Lines Matching refs:context
38 struct tegra_context *context = to_tegra_context(pcontext); in tegra_destroy() local
40 if (context->base.stream_uploader) in tegra_destroy()
41 u_upload_destroy(context->base.stream_uploader); in tegra_destroy()
43 context->gpu->destroy(context->gpu); in tegra_destroy()
44 free(context); in tegra_destroy()
51 struct tegra_context *context = to_tegra_context(pcontext); in tegra_draw_vbo() local
70 context->gpu->draw_vbo(context->gpu, pinfo); in tegra_draw_vbo()
79 struct tegra_context *context = to_tegra_context(pcontext); in tegra_render_condition() local
81 context->gpu->render_condition(context->gpu, query, condition, mode); in tegra_render_condition()
88 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_query() local
90 return context->gpu->create_query(context->gpu, query_type, index); in tegra_create_query()
98 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_batch_query() local
100 return context->gpu->create_batch_query(context->gpu, num_queries, in tegra_create_batch_query()
107 struct tegra_context *context = to_tegra_context(pcontext); in tegra_destroy_query() local
109 context->gpu->destroy_query(context->gpu, query); in tegra_destroy_query()
115 struct tegra_context *context = to_tegra_context(pcontext); in tegra_begin_query() local
117 return context->gpu->begin_query(context->gpu, query); in tegra_begin_query()
123 struct tegra_context *context = to_tegra_context(pcontext); in tegra_end_query() local
125 return context->gpu->end_query(context->gpu, query); in tegra_end_query()
134 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_query_result() local
136 return context->gpu->get_query_result(context->gpu, query, wait, in tegra_get_query_result()
149 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_query_result_resource() local
151 context->gpu->get_query_result_resource(context->gpu, query, wait, in tegra_get_query_result_resource()
159 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_active_query_state() local
161 context->gpu->set_active_query_state(context->gpu, enable); in tegra_set_active_query_state()
168 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_blend_state() local
170 return context->gpu->create_blend_state(context->gpu, cso); in tegra_create_blend_state()
176 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_blend_state() local
178 context->gpu->bind_blend_state(context->gpu, so); in tegra_bind_blend_state()
184 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_blend_state() local
186 context->gpu->delete_blend_state(context->gpu, so); in tegra_delete_blend_state()
193 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_sampler_state() local
195 return context->gpu->create_sampler_state(context->gpu, cso); in tegra_create_sampler_state()
203 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_sampler_states() local
205 context->gpu->bind_sampler_states(context->gpu, shader, start_slot, in tegra_bind_sampler_states()
212 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_sampler_state() local
214 context->gpu->delete_sampler_state(context->gpu, so); in tegra_delete_sampler_state()
221 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_rasterizer_state() local
223 return context->gpu->create_rasterizer_state(context->gpu, cso); in tegra_create_rasterizer_state()
229 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_rasterizer_state() local
231 context->gpu->bind_rasterizer_state(context->gpu, so); in tegra_bind_rasterizer_state()
237 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_rasterizer_state() local
239 context->gpu->delete_rasterizer_state(context->gpu, so); in tegra_delete_rasterizer_state()
246 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_depth_stencil_alpha_state() local
248 return context->gpu->create_depth_stencil_alpha_state(context->gpu, cso); in tegra_create_depth_stencil_alpha_state()
254 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_depth_stencil_alpha_state() local
256 context->gpu->bind_depth_stencil_alpha_state(context->gpu, so); in tegra_bind_depth_stencil_alpha_state()
262 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_depth_stencil_alpha_state() local
264 context->gpu->delete_depth_stencil_alpha_state(context->gpu, so); in tegra_delete_depth_stencil_alpha_state()
271 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_fs_state() local
273 return context->gpu->create_fs_state(context->gpu, cso); in tegra_create_fs_state()
279 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_fs_state() local
281 context->gpu->bind_fs_state(context->gpu, so); in tegra_bind_fs_state()
287 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_fs_state() local
289 context->gpu->delete_fs_state(context->gpu, so); in tegra_delete_fs_state()
296 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_vs_state() local
298 return context->gpu->create_vs_state(context->gpu, cso); in tegra_create_vs_state()
304 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_vs_state() local
306 context->gpu->bind_vs_state(context->gpu, so); in tegra_bind_vs_state()
312 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_vs_state() local
314 context->gpu->delete_vs_state(context->gpu, so); in tegra_delete_vs_state()
321 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_gs_state() local
323 return context->gpu->create_gs_state(context->gpu, cso); in tegra_create_gs_state()
329 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_gs_state() local
331 context->gpu->bind_gs_state(context->gpu, so); in tegra_bind_gs_state()
337 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_gs_state() local
339 context->gpu->delete_gs_state(context->gpu, so); in tegra_delete_gs_state()
346 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_tcs_state() local
348 return context->gpu->create_tcs_state(context->gpu, cso); in tegra_create_tcs_state()
354 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_tcs_state() local
356 context->gpu->bind_tcs_state(context->gpu, so); in tegra_bind_tcs_state()
362 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_tcs_state() local
364 context->gpu->delete_tcs_state(context->gpu, so); in tegra_delete_tcs_state()
371 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_tes_state() local
373 return context->gpu->create_tes_state(context->gpu, cso); in tegra_create_tes_state()
379 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_tes_state() local
381 context->gpu->bind_tes_state(context->gpu, so); in tegra_bind_tes_state()
387 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_tes_state() local
389 context->gpu->delete_tes_state(context->gpu, so); in tegra_delete_tes_state()
397 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_vertex_elements_state() local
399 return context->gpu->create_vertex_elements_state(context->gpu, in tegra_create_vertex_elements_state()
407 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_vertex_elements_state() local
409 context->gpu->bind_vertex_elements_state(context->gpu, so); in tegra_bind_vertex_elements_state()
415 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_vertex_elements_state() local
417 context->gpu->delete_vertex_elements_state(context->gpu, so); in tegra_delete_vertex_elements_state()
424 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_blend_color() local
426 context->gpu->set_blend_color(context->gpu, color); in tegra_set_blend_color()
433 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_stencil_ref() local
435 context->gpu->set_stencil_ref(context->gpu, ref); in tegra_set_stencil_ref()
441 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_sample_mask() local
443 context->gpu->set_sample_mask(context->gpu, mask); in tegra_set_sample_mask()
449 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_min_samples() local
451 context->gpu->set_min_samples(context->gpu, samples); in tegra_set_min_samples()
458 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_clip_state() local
460 context->gpu->set_clip_state(context->gpu, state); in tegra_set_clip_state()
468 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_constant_buffer() local
477 context->gpu->set_constant_buffer(context->gpu, shader, index, buf); in tegra_set_constant_buffer()
484 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_framebuffer_state() local
502 context->gpu->set_framebuffer_state(context->gpu, fb); in tegra_set_framebuffer_state()
509 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_polygon_stipple() local
511 context->gpu->set_polygon_stipple(context->gpu, stipple); in tegra_set_polygon_stipple()
519 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_scissor_states() local
521 context->gpu->set_scissor_states(context->gpu, start_slot, num_scissors, in tegra_set_scissor_states()
530 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_window_rectangles() local
532 context->gpu->set_window_rectangles(context->gpu, include, num_rectangles, in tegra_set_window_rectangles()
541 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_viewport_states() local
543 context->gpu->set_viewport_states(context->gpu, start_slot, num_viewports, in tegra_set_viewport_states()
553 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_sampler_views() local
559 context->gpu->set_sampler_views(context->gpu, shader, start_slot, in tegra_set_sampler_views()
568 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_tess_state() local
570 context->gpu->set_tess_state(context->gpu, default_outer_level, in tegra_set_tess_state()
578 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_debug_callback() local
580 context->gpu->set_debug_callback(context->gpu, callback); in tegra_set_debug_callback()
589 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_shader_buffers() local
591 context->gpu->set_shader_buffers(context->gpu, shader, start, count, in tegra_set_shader_buffers()
600 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_shader_images() local
602 context->gpu->set_shader_images(context->gpu, shader, start, count, in tegra_set_shader_images()
611 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_vertex_buffers() local
626 context->gpu->set_vertex_buffers(context->gpu, start_slot, num_buffers, in tegra_set_vertex_buffers()
637 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_stream_output_target() local
639 return context->gpu->create_stream_output_target(context->gpu, in tegra_create_stream_output_target()
649 struct tegra_context *context = to_tegra_context(pcontext); in tegra_stream_output_target_destroy() local
651 context->gpu->stream_output_target_destroy(context->gpu, target); in tegra_stream_output_target_destroy()
660 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_stream_output_targets() local
662 context->gpu->set_stream_output_targets(context->gpu, num_targets, in tegra_set_stream_output_targets()
677 struct tegra_context *context = to_tegra_context(pcontext); in tegra_resource_copy_region() local
681 context->gpu->resource_copy_region(context->gpu, dst->gpu, dst_level, dstx, in tegra_resource_copy_region()
689 struct tegra_context *context = to_tegra_context(pcontext); in tegra_blit() local
699 context->gpu->blit(context->gpu, pinfo); in tegra_blit()
707 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear() local
709 context->gpu->clear(context->gpu, buffers, NULL, color, depth, stencil); in tegra_clear()
722 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear_render_target() local
725 context->gpu->clear_render_target(context->gpu, dst->gpu, color, dstx, in tegra_clear_render_target()
741 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear_depth_stencil() local
744 context->gpu->clear_depth_stencil(context->gpu, dst->gpu, flags, depth, in tegra_clear_depth_stencil()
757 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear_texture() local
759 context->gpu->clear_texture(context->gpu, resource->gpu, level, box, data); in tegra_clear_texture()
771 struct tegra_context *context = to_tegra_context(pcontext); in tegra_clear_buffer() local
773 context->gpu->clear_buffer(context->gpu, resource->gpu, offset, size, in tegra_clear_buffer()
781 struct tegra_context *context = to_tegra_context(pcontext); in tegra_flush() local
783 context->gpu->flush(context->gpu, fence, flags); in tegra_flush()
791 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_fence_fd() local
794 context->gpu->create_fence_fd(context->gpu, fence, fd, type); in tegra_create_fence_fd()
801 struct tegra_context *context = to_tegra_context(pcontext); in tegra_fence_server_sync() local
803 context->gpu->fence_server_sync(context->gpu, fence); in tegra_fence_server_sync()
812 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_sampler_view() local
819 view->gpu = context->gpu->create_sampler_view(context->gpu, resource->gpu, in tegra_create_sampler_view()
827 view->base.context = pcontext; in tegra_create_sampler_view()
849 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_surface() local
856 surface->gpu = context->gpu->create_surface(context->gpu, resource->gpu, in tegra_create_surface()
869 surface->base.context = &context->base; in tegra_create_surface()
893 struct tegra_context *context = to_tegra_context(pcontext); in tegra_transfer_map() local
900 transfer->map = context->gpu->transfer_map(context->gpu, resource->gpu, in tegra_transfer_map()
918 struct tegra_context *context = to_tegra_context(pcontext); in tegra_transfer_flush_region() local
920 context->gpu->transfer_flush_region(context->gpu, transfer->gpu, box); in tegra_transfer_flush_region()
928 struct tegra_context *context = to_tegra_context(pcontext); in tegra_transfer_unmap() local
930 context->gpu->transfer_unmap(context->gpu, transfer->gpu); in tegra_transfer_unmap()
942 struct tegra_context *context = to_tegra_context(pcontext); in tegra_buffer_subdata() local
944 context->gpu->buffer_subdata(context->gpu, resource->gpu, usage, offset, in tegra_buffer_subdata()
959 struct tegra_context *context = to_tegra_context(pcontext); in tegra_texture_subdata() local
961 context->gpu->texture_subdata(context->gpu, resource->gpu, level, usage, in tegra_texture_subdata()
968 struct tegra_context *context = to_tegra_context(pcontext); in tegra_texture_barrier() local
970 context->gpu->texture_barrier(context->gpu, flags); in tegra_texture_barrier()
976 struct tegra_context *context = to_tegra_context(pcontext); in tegra_memory_barrier() local
981 context->gpu->memory_barrier(context->gpu, flags); in tegra_memory_barrier()
988 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_video_codec() local
990 return context->gpu->create_video_codec(context->gpu, template); in tegra_create_video_codec()
997 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_video_buffer() local
999 return context->gpu->create_video_buffer(context->gpu, template); in tegra_create_video_buffer()
1006 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_compute_state() local
1008 return context->gpu->create_compute_state(context->gpu, template); in tegra_create_compute_state()
1014 struct tegra_context *context = to_tegra_context(pcontext); in tegra_bind_compute_state() local
1016 context->gpu->bind_compute_state(context->gpu, so); in tegra_bind_compute_state()
1022 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_compute_state() local
1024 context->gpu->delete_compute_state(context->gpu, so); in tegra_delete_compute_state()
1032 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_compute_resources() local
1036 context->gpu->set_compute_resources(context->gpu, start, count, resources); in tegra_set_compute_resources()
1044 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_global_binding() local
1048 context->gpu->set_global_binding(context->gpu, first, count, resources, in tegra_set_global_binding()
1056 struct tegra_context *context = to_tegra_context(pcontext); in tegra_launch_grid() local
1060 context->gpu->launch_grid(context->gpu, info); in tegra_launch_grid()
1067 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_sample_position() local
1069 context->gpu->get_sample_position(context->gpu, count, index, value); in tegra_get_sample_position()
1075 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_timestamp() local
1077 return context->gpu->get_timestamp(context->gpu); in tegra_get_timestamp()
1085 struct tegra_context *context = to_tegra_context(pcontext); in tegra_flush_resource() local
1087 context->gpu->flush_resource(context->gpu, resource->gpu); in tegra_flush_resource()
1095 struct tegra_context *context = to_tegra_context(pcontext); in tegra_invalidate_resource() local
1097 context->gpu->invalidate_resource(context->gpu, resource->gpu); in tegra_invalidate_resource()
1103 struct tegra_context *context = to_tegra_context(pcontext); in tegra_get_device_reset_status() local
1105 return context->gpu->get_device_reset_status(context->gpu); in tegra_get_device_reset_status()
1112 struct tegra_context *context = to_tegra_context(pcontext); in tegra_set_device_reset_callback() local
1114 context->gpu->set_device_reset_callback(context->gpu, cb); in tegra_set_device_reset_callback()
1121 struct tegra_context *context = to_tegra_context(pcontext); in tegra_dump_debug_state() local
1123 context->gpu->dump_debug_state(context->gpu, stream, flags); in tegra_dump_debug_state()
1130 struct tegra_context *context = to_tegra_context(pcontext); in tegra_emit_string_marker() local
1132 context->gpu->emit_string_marker(context->gpu, string, length); in tegra_emit_string_marker()
1145 struct tegra_context *context = to_tegra_context(pcontext); in tegra_generate_mipmap() local
1147 return context->gpu->generate_mipmap(context->gpu, resource->gpu, format, in tegra_generate_mipmap()
1157 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_texture_handle() local
1159 return context->gpu->create_texture_handle(context->gpu, view, state); in tegra_create_texture_handle()
1165 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_texture_handle() local
1167 context->gpu->delete_texture_handle(context->gpu, handle); in tegra_delete_texture_handle()
1173 struct tegra_context *context = to_tegra_context(pcontext); in tegra_make_texture_handle_resident() local
1175 context->gpu->make_texture_handle_resident(context->gpu, handle, resident); in tegra_make_texture_handle_resident()
1181 struct tegra_context *context = to_tegra_context(pcontext); in tegra_create_image_handle() local
1183 return context->gpu->create_image_handle(context->gpu, image); in tegra_create_image_handle()
1189 struct tegra_context *context = to_tegra_context(pcontext); in tegra_delete_image_handle() local
1191 context->gpu->delete_image_handle(context->gpu, handle); in tegra_delete_image_handle()
1198 struct tegra_context *context = to_tegra_context(pcontext); in tegra_make_image_handle_resident() local
1200 context->gpu->make_image_handle_resident(context->gpu, handle, access, in tegra_make_image_handle_resident()
1209 struct tegra_context *context; in tegra_screen_context_create() local
1211 context = calloc(1, sizeof(*context)); in tegra_screen_context_create()
1212 if (!context) in tegra_screen_context_create()
1215 context->gpu = screen->gpu->context_create(screen->gpu, priv, flags); in tegra_screen_context_create()
1216 if (!context->gpu) { in tegra_screen_context_create()
1221 context->base.screen = &screen->base; in tegra_screen_context_create()
1222 context->base.priv = priv; in tegra_screen_context_create()
1239 context->base.stream_uploader = u_upload_create_default(&context->base); in tegra_screen_context_create()
1240 if (!context->base.stream_uploader) in tegra_screen_context_create()
1243 context->base.const_uploader = context->base.stream_uploader; in tegra_screen_context_create()
1245 context->base.destroy = tegra_destroy; in tegra_screen_context_create()
1247 context->base.draw_vbo = tegra_draw_vbo; in tegra_screen_context_create()
1249 context->base.render_condition = tegra_render_condition; in tegra_screen_context_create()
1251 context->base.create_query = tegra_create_query; in tegra_screen_context_create()
1252 context->base.create_batch_query = tegra_create_batch_query; in tegra_screen_context_create()
1253 context->base.destroy_query = tegra_destroy_query; in tegra_screen_context_create()
1254 context->base.begin_query = tegra_begin_query; in tegra_screen_context_create()
1255 context->base.end_query = tegra_end_query; in tegra_screen_context_create()
1256 context->base.get_query_result = tegra_get_query_result; in tegra_screen_context_create()
1257 context->base.get_query_result_resource = tegra_get_query_result_resource; in tegra_screen_context_create()
1258 context->base.set_active_query_state = tegra_set_active_query_state; in tegra_screen_context_create()
1260 context->base.create_blend_state = tegra_create_blend_state; in tegra_screen_context_create()
1261 context->base.bind_blend_state = tegra_bind_blend_state; in tegra_screen_context_create()
1262 context->base.delete_blend_state = tegra_delete_blend_state; in tegra_screen_context_create()
1264 context->base.create_sampler_state = tegra_create_sampler_state; in tegra_screen_context_create()
1265 context->base.bind_sampler_states = tegra_bind_sampler_states; in tegra_screen_context_create()
1266 context->base.delete_sampler_state = tegra_delete_sampler_state; in tegra_screen_context_create()
1268 context->base.create_rasterizer_state = tegra_create_rasterizer_state; in tegra_screen_context_create()
1269 context->base.bind_rasterizer_state = tegra_bind_rasterizer_state; in tegra_screen_context_create()
1270 context->base.delete_rasterizer_state = tegra_delete_rasterizer_state; in tegra_screen_context_create()
1272 context->base.create_depth_stencil_alpha_state = tegra_create_depth_stencil_alpha_state; in tegra_screen_context_create()
1273 context->base.bind_depth_stencil_alpha_state = tegra_bind_depth_stencil_alpha_state; in tegra_screen_context_create()
1274 context->base.delete_depth_stencil_alpha_state = tegra_delete_depth_stencil_alpha_state; in tegra_screen_context_create()
1276 context->base.create_fs_state = tegra_create_fs_state; in tegra_screen_context_create()
1277 context->base.bind_fs_state = tegra_bind_fs_state; in tegra_screen_context_create()
1278 context->base.delete_fs_state = tegra_delete_fs_state; in tegra_screen_context_create()
1280 context->base.create_vs_state = tegra_create_vs_state; in tegra_screen_context_create()
1281 context->base.bind_vs_state = tegra_bind_vs_state; in tegra_screen_context_create()
1282 context->base.delete_vs_state = tegra_delete_vs_state; in tegra_screen_context_create()
1284 context->base.create_gs_state = tegra_create_gs_state; in tegra_screen_context_create()
1285 context->base.bind_gs_state = tegra_bind_gs_state; in tegra_screen_context_create()
1286 context->base.delete_gs_state = tegra_delete_gs_state; in tegra_screen_context_create()
1288 context->base.create_tcs_state = tegra_create_tcs_state; in tegra_screen_context_create()
1289 context->base.bind_tcs_state = tegra_bind_tcs_state; in tegra_screen_context_create()
1290 context->base.delete_tcs_state = tegra_delete_tcs_state; in tegra_screen_context_create()
1292 context->base.create_tes_state = tegra_create_tes_state; in tegra_screen_context_create()
1293 context->base.bind_tes_state = tegra_bind_tes_state; in tegra_screen_context_create()
1294 context->base.delete_tes_state = tegra_delete_tes_state; in tegra_screen_context_create()
1296 context->base.create_vertex_elements_state = tegra_create_vertex_elements_state; in tegra_screen_context_create()
1297 context->base.bind_vertex_elements_state = tegra_bind_vertex_elements_state; in tegra_screen_context_create()
1298 context->base.delete_vertex_elements_state = tegra_delete_vertex_elements_state; in tegra_screen_context_create()
1300 context->base.set_blend_color = tegra_set_blend_color; in tegra_screen_context_create()
1301 context->base.set_stencil_ref = tegra_set_stencil_ref; in tegra_screen_context_create()
1302 context->base.set_sample_mask = tegra_set_sample_mask; in tegra_screen_context_create()
1303 context->base.set_min_samples = tegra_set_min_samples; in tegra_screen_context_create()
1304 context->base.set_clip_state = tegra_set_clip_state; in tegra_screen_context_create()
1306 context->base.set_constant_buffer = tegra_set_constant_buffer; in tegra_screen_context_create()
1307 context->base.set_framebuffer_state = tegra_set_framebuffer_state; in tegra_screen_context_create()
1308 context->base.set_polygon_stipple = tegra_set_polygon_stipple; in tegra_screen_context_create()
1309 context->base.set_scissor_states = tegra_set_scissor_states; in tegra_screen_context_create()
1310 context->base.set_window_rectangles = tegra_set_window_rectangles; in tegra_screen_context_create()
1311 context->base.set_viewport_states = tegra_set_viewport_states; in tegra_screen_context_create()
1312 context->base.set_sampler_views = tegra_set_sampler_views; in tegra_screen_context_create()
1313 context->base.set_tess_state = tegra_set_tess_state; in tegra_screen_context_create()
1315 context->base.set_debug_callback = tegra_set_debug_callback; in tegra_screen_context_create()
1317 context->base.set_shader_buffers = tegra_set_shader_buffers; in tegra_screen_context_create()
1318 context->base.set_shader_images = tegra_set_shader_images; in tegra_screen_context_create()
1319 context->base.set_vertex_buffers = tegra_set_vertex_buffers; in tegra_screen_context_create()
1321 context->base.create_stream_output_target = tegra_create_stream_output_target; in tegra_screen_context_create()
1322 context->base.stream_output_target_destroy = tegra_stream_output_target_destroy; in tegra_screen_context_create()
1323 context->base.set_stream_output_targets = tegra_set_stream_output_targets; in tegra_screen_context_create()
1325 context->base.resource_copy_region = tegra_resource_copy_region; in tegra_screen_context_create()
1326 context->base.blit = tegra_blit; in tegra_screen_context_create()
1327 context->base.clear = tegra_clear; in tegra_screen_context_create()
1328 context->base.clear_render_target = tegra_clear_render_target; in tegra_screen_context_create()
1329 context->base.clear_depth_stencil = tegra_clear_depth_stencil; in tegra_screen_context_create()
1330 context->base.clear_texture = tegra_clear_texture; in tegra_screen_context_create()
1331 context->base.clear_buffer = tegra_clear_buffer; in tegra_screen_context_create()
1332 context->base.flush = tegra_flush; in tegra_screen_context_create()
1334 context->base.create_fence_fd = tegra_create_fence_fd; in tegra_screen_context_create()
1335 context->base.fence_server_sync = tegra_fence_server_sync; in tegra_screen_context_create()
1337 context->base.create_sampler_view = tegra_create_sampler_view; in tegra_screen_context_create()
1338 context->base.sampler_view_destroy = tegra_sampler_view_destroy; in tegra_screen_context_create()
1340 context->base.create_surface = tegra_create_surface; in tegra_screen_context_create()
1341 context->base.surface_destroy = tegra_surface_destroy; in tegra_screen_context_create()
1343 context->base.transfer_map = tegra_transfer_map; in tegra_screen_context_create()
1344 context->base.transfer_flush_region = tegra_transfer_flush_region; in tegra_screen_context_create()
1345 context->base.transfer_unmap = tegra_transfer_unmap; in tegra_screen_context_create()
1346 context->base.buffer_subdata = tegra_buffer_subdata; in tegra_screen_context_create()
1347 context->base.texture_subdata = tegra_texture_subdata; in tegra_screen_context_create()
1349 context->base.texture_barrier = tegra_texture_barrier; in tegra_screen_context_create()
1350 context->base.memory_barrier = tegra_memory_barrier; in tegra_screen_context_create()
1352 context->base.create_video_codec = tegra_create_video_codec; in tegra_screen_context_create()
1353 context->base.create_video_buffer = tegra_create_video_buffer; in tegra_screen_context_create()
1355 context->base.create_compute_state = tegra_create_compute_state; in tegra_screen_context_create()
1356 context->base.bind_compute_state = tegra_bind_compute_state; in tegra_screen_context_create()
1357 context->base.delete_compute_state = tegra_delete_compute_state; in tegra_screen_context_create()
1358 context->base.set_compute_resources = tegra_set_compute_resources; in tegra_screen_context_create()
1359 context->base.set_global_binding = tegra_set_global_binding; in tegra_screen_context_create()
1360 context->base.launch_grid = tegra_launch_grid; in tegra_screen_context_create()
1361 context->base.get_sample_position = tegra_get_sample_position; in tegra_screen_context_create()
1362 context->base.get_timestamp = tegra_get_timestamp; in tegra_screen_context_create()
1364 context->base.flush_resource = tegra_flush_resource; in tegra_screen_context_create()
1365 context->base.invalidate_resource = tegra_invalidate_resource; in tegra_screen_context_create()
1367 context->base.get_device_reset_status = tegra_get_device_reset_status; in tegra_screen_context_create()
1368 context->base.set_device_reset_callback = tegra_set_device_reset_callback; in tegra_screen_context_create()
1369 context->base.dump_debug_state = tegra_dump_debug_state; in tegra_screen_context_create()
1370 context->base.emit_string_marker = tegra_emit_string_marker; in tegra_screen_context_create()
1372 context->base.generate_mipmap = tegra_generate_mipmap; in tegra_screen_context_create()
1374 context->base.create_texture_handle = tegra_create_texture_handle; in tegra_screen_context_create()
1375 context->base.delete_texture_handle = tegra_delete_texture_handle; in tegra_screen_context_create()
1376 context->base.make_texture_handle_resident = tegra_make_texture_handle_resident; in tegra_screen_context_create()
1377 context->base.create_image_handle = tegra_create_image_handle; in tegra_screen_context_create()
1378 context->base.delete_image_handle = tegra_delete_image_handle; in tegra_screen_context_create()
1379 context->base.make_image_handle_resident = tegra_make_image_handle_resident; in tegra_screen_context_create()
1381 return &context->base; in tegra_screen_context_create()
1384 context->gpu->destroy(context->gpu); in tegra_screen_context_create()
1386 free(context); in tegra_screen_context_create()