1# For documentation on the .attrib file format, see:
2# android/android-emugl/host/tools/emugen/README
3
4GLOBAL
5	base_opcode 100000
6	encoder_headers <stdint.h>
7
8magma_device_import
9	dir device_out out
10	len device_out sizeof(magma_device_t)
11
12magma_device_query
13	dir result_buffer_out out
14	len result_buffer_out sizeof(magma_handle_t)
15	dir result_out out
16	len result_out sizeof(uint64_t)
17
18magma_device_query_fudge
19	dir result_buffer_mapping_id_inout inout
20	len result_buffer_mapping_id_inout sizeof(uint64_t)
21	dir result_buffer_size_inout inout
22	len result_buffer_size_inout sizeof(uint64_t)
23	dir result_out out
24	len result_out sizeof(uint64_t)
25
26magma_device_create_connection
27	dir connection_out out
28	len connection_out sizeof(magma_connection_t)
29
30magma_connection_create_context
31	dir context_id_out out
32	len context_id_out sizeof(uint32_t)
33
34magma_connection_create_buffer
35	dir size_out out
36	len size_out sizeof(uint64_t)
37	dir buffer_out out
38	len buffer_out sizeof(magma_buffer_t)
39	dir id_out out
40	len id_out sizeof(magma_buffer_id_t)
41
42magma_connection_import_buffer
43	dir size_out out
44	len size_out sizeof(uint64_t)
45	dir buffer_out out
46	len buffer_out sizeof(magma_buffer_t)
47	dir id_out out
48	len id_out sizeof(magma_buffer_id_t)
49
50magma_connection_create_semaphore
51	dir semaphore_out out
52	len semaphore_out sizeof(magma_semaphore_t)
53	dir id_out out
54	len id_out sizeof(magma_semaphore_id_t)
55
56magma_connection_import_semaphore
57	dir semaphore_out out
58	len semaphore_out sizeof(magma_semaphore_t)
59	dir id_out out
60	len id_out sizeof(magma_semaphore_id_t)
61
62magma_connection_read_notification_channel
63	dir buffer out
64	len buffer buffer_size
65	dir buffer_size_out out
66	len buffer_size_out sizeof(uint64_t)
67	dir more_data_out out
68	len more_data_out sizeof(magma_bool_t)
69
70magma_buffer_get_cache_policy
71	dir cache_policy_out out
72	len cache_policy_out sizeof(magma_cache_policy_t)
73
74magma_buffer_get_info
75	dir info_out out
76	len info_out sizeof(magma_buffer_info)
77
78magma_buffer_get_handle
79	dir handle_out out
80	len handle_out sizeof(magma_handle_t)
81
82magma_buffer_export
83	dir buffer_handle_out out
84	len buffer_handle_out sizeof(magma_handle_t)
85
86magma_semaphore_export
87	dir semaphore_handle_out out
88	len semaphore_handle_out sizeof(magma_handle_t)
89
90magma_connection_create_performance_counter_buffer_pool
91	dir pool_id_out out
92	len pool_id_out sizeof(magma_perf_count_pool_t)
93	dir notification_handle_out out
94	len notification_handle_out sizeof(magma_handle_t)
95
96magma_connection_read_performance_counter_completion
97	dir trigger_id_out out
98	len trigger_id_out sizeof(uint32_t)
99	dir buffer_id_out out
100	len buffer_id_out sizeof(uint64_t)
101	dir buffer_offset_out out
102	len buffer_offset_out sizeof(uint32_t)
103	dir time_out out
104	len time_out sizeof(uint64_t)
105	dir result_flags_out out
106	len result_flags_out sizeof(uint32_t)
107
108magma_connection_execute_command
109	dir descriptor in
110	len descriptor sizeof(magma_command_descriptor_t)
111
112magma_connection_execute_command_fudge
113	dir descriptor in
114	len descriptor descriptor_size
115
116magma_connection_execute_immediate_commands
117	dir command_buffers in
118	len command_buffers command_count * sizeof(magma_inline_command_buffer_t)
119
120magma_connection_execute_immediate_commands_fudge
121	dir command_buffers in
122	len command_buffers command_buffers_size
123	dir command_buffer_offsets in
124	len command_buffer_offsets command_count * sizeof(uint64_t)
125
126magma_buffer_set_name
127	dir name in
128	len name 1
129
130magma_buffer_set_name_fudge
131	dir name in
132	len name name_size
133
134magma_poll
135	dir items inout
136	len items count * sizeof(magma_poll_item_t)
137
138magma_connection_enable_performance_counters
139	dir counters in
140	len counters counters_count * sizeof(uint64_t)
141
142magma_connection_clear_performance_counters
143	dir counters in
144	len counters counters_count * sizeof(uint64_t)
145
146magma_connection_add_performance_counter_buffer_offsets_to_pool
147	dir offsets in
148	len offsets offsets_count * sizeof(magma_buffer_offset_t)
149
150magma_virt_connection_create_image
151	dir create_info in
152	len create_info sizeof(magma_image_create_info_t)
153	dir size_out out
154	len size_out sizeof(uint64_t)
155	dir image_out out
156	len image_out sizeof(magma_buffer_t)
157	dir buffer_id_out out
158	len buffer_id_out sizeof(magma_buffer_id_t)
159
160magma_virt_connection_get_image_info
161	dir image_info_out out
162	len image_info_out sizeof(magma_image_info_t)
163