blob: 2f3cfb548516bbf223d1d47eedee69a7b0bcbf39 [file] [log] [blame]
Jason Sams326e0dd2009-05-22 14:03:28 -07001
Jason Sams186e5912011-04-26 14:50:00 -07002ContextDestroy {
3 direct
4}
5
6ContextGetMessage {
7 direct
8 param void *data
9 param size_t *receiveLen
Jason Sams1a4efa32011-05-17 15:01:29 -070010 param uint32_t *usrID
Jason Sams186e5912011-04-26 14:50:00 -070011 ret RsMessageToClientType
12}
13
14ContextPeekMessage {
15 direct
16 param size_t *receiveLen
Jason Sams1a4efa32011-05-17 15:01:29 -070017 param uint32_t *usrID
Jason Sams186e5912011-04-26 14:50:00 -070018 ret RsMessageToClientType
19}
20
Jason Sams70265202013-02-05 19:20:47 -080021ContextSendMessage {
22 param uint32_t id
23 param const uint8_t *data
24}
25
Jason Sams186e5912011-04-26 14:50:00 -070026ContextInitToClient {
27 direct
28}
29
30ContextDeinitToClient {
31 direct
32}
33
Jason Samsc975cf42011-04-28 18:26:48 -070034TypeCreate {
Jason Sams186e5912011-04-26 14:50:00 -070035 direct
36 param RsElement e
37 param uint32_t dimX
38 param uint32_t dimY
39 param uint32_t dimZ
Stephen Hines8f615d62013-12-20 12:23:32 -080040 param bool mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070041 param bool faces
Jason Samsa572aca2013-01-09 11:52:26 -080042 param uint32_t yuv
Jason Sams186e5912011-04-26 14:50:00 -070043 ret RsType
44}
45
Jason Samsc7968a02014-11-11 16:24:36 -080046TypeCreate2 {
47 direct
48 param const RsTypeCreateParams *dat
49 ret RsType
50}
51
Jason Samsc975cf42011-04-28 18:26:48 -070052AllocationCreateTyped {
Jason Sams186e5912011-04-26 14:50:00 -070053 direct
54 param RsType vtype
Stephen Hines8f615d62013-12-20 12:23:32 -080055 param RsAllocationMipmapControl mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070056 param uint32_t usages
Tim Murray099bc262013-03-20 16:54:03 -070057 param uintptr_t ptr
Jason Sams186e5912011-04-26 14:50:00 -070058 ret RsAllocation
59}
60
Jason Samsc975cf42011-04-28 18:26:48 -070061AllocationCreateFromBitmap {
Jason Sams186e5912011-04-26 14:50:00 -070062 direct
63 param RsType vtype
Stephen Hines8f615d62013-12-20 12:23:32 -080064 param RsAllocationMipmapControl mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070065 param const void *data
66 param uint32_t usages
67 ret RsAllocation
68}
69
Jason Samsc975cf42011-04-28 18:26:48 -070070AllocationCubeCreateFromBitmap {
Jason Sams186e5912011-04-26 14:50:00 -070071 direct
72 param RsType vtype
Stephen Hines8f615d62013-12-20 12:23:32 -080073 param RsAllocationMipmapControl mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070074 param const void *data
75 param uint32_t usages
76 ret RsAllocation
77}
78
Jason Sams733396b2013-02-22 12:46:18 -080079AllocationGetSurface {
Jason Sams41e373d2012-01-13 14:01:20 -080080 param RsAllocation alloc
Jason Sams3522f402012-03-23 11:47:26 -070081 sync
Jason Sams733396b2013-02-22 12:46:18 -080082 ret RsNativeWindow
Jason Sams3522f402012-03-23 11:47:26 -070083}
84
Jason Sams7ac2a4d2012-02-15 12:04:24 -080085AllocationSetSurface {
86 param RsAllocation alloc
87 param RsNativeWindow sur
88 sync
89 }
90
Jason Samsbc9dc272015-02-09 12:50:22 -080091AllocationAdapterCreate {
92 direct
93 param RsType vtype
94 param RsAllocation baseAlloc
95 ret RsAllocation
96}
97
98AllocationAdapterOffset {
99 param RsAllocation alloc
100 param const uint32_t *offsets
101}
102
Jason Sams8c880902010-06-15 12:15:57 -0700103ContextFinish {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800104 sync
105 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700106
Jason Samsc21cf402009-11-17 17:26:46 -0800107ContextDump {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800108 param int32_t bits
Jason Samsc21cf402009-11-17 17:26:46 -0800109}
110
Jason Sams613cad12009-11-12 15:10:25 -0800111ContextSetPriority {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800112 param int32_t priority
113 }
Jason Sams613cad12009-11-12 15:10:25 -0800114
Jason Sams741aac92010-12-24 14:38:39 -0800115ContextDestroyWorker {
Tim Murray8c1da3f2013-07-17 12:22:19 -0700116 sync
Jason Sams1dcefab2010-12-09 12:19:46 -0800117}
118
Jason Samsa0a1b6f2009-06-10 15:04:38 -0700119AssignName {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800120 param RsObjectBase obj
121 param const char *name
122 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700123
Jason Sams707aaf32009-08-18 14:14:24 -0700124ObjDestroy {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800125 param RsAsyncVoidPtr objPtr
Tim Murray397b0b12014-01-07 15:35:08 -0800126 handcodeApi
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800127 }
Jason Sams707aaf32009-08-18 14:14:24 -0700128
Jason Samsd01d9702009-12-23 14:35:29 -0800129ElementCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700130 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800131 param RsDataType mType
132 param RsDataKind mKind
133 param bool mNormalized
134 param uint32_t mVectorSize
135 ret RsElement
136 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700137
Jason Samsd01d9702009-12-23 14:35:29 -0800138ElementCreate2 {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700139 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800140 param const RsElement * elements
141 param const char ** names
142 param const uint32_t * arraySize
143 ret RsElement
144 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700145
Jason Sams837e3882010-12-10 16:03:15 -0800146AllocationCopyToBitmap {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800147 param RsAllocation alloc
148 param void * data
149 }
Alex Sakhartchouk39f2ef62010-10-11 12:35:15 -0700150
Jason Samsb8a94e22014-02-24 17:52:32 -0800151AllocationGetPointer {
152 param RsAllocation va
153 param uint32_t lod
154 param RsAllocationCubemapFace face
155 param uint32_t z
156 param uint32_t array
157 param size_t *stride
158 ret void *s
159 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700160
Jason Sams4b45b892010-12-29 14:31:29 -0800161Allocation1DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800162 param RsAllocation va
163 param uint32_t xoff
164 param uint32_t lod
165 param uint32_t count
166 param const void *data
167 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700168
Jason Sams4b45b892010-12-29 14:31:29 -0800169Allocation1DElementData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800170 param RsAllocation va
171 param uint32_t x
172 param uint32_t lod
173 param const void *data
174 param size_t comp_offset
175 }
Jason Sams5f0c84c2010-08-31 13:50:42 -0700176
Jason Sams4b45b892010-12-29 14:31:29 -0800177Allocation2DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800178 param RsAllocation va
179 param uint32_t xoff
180 param uint32_t yoff
181 param uint32_t lod
182 param RsAllocationCubemapFace face
183 param uint32_t w
184 param uint32_t h
185 param const void *data
Tim Murray358747a2012-11-26 13:52:04 -0800186 param size_t stride
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800187 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700188
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700189Allocation3DData {
190 param RsAllocation va
191 param uint32_t xoff
192 param uint32_t yoff
193 param uint32_t zoff
194 param uint32_t lod
195 param uint32_t w
196 param uint32_t h
197 param uint32_t d
198 param const void *data
199 param size_t stride
200 }
201
Jason Samsa2371512011-01-12 13:28:37 -0800202AllocationGenerateMipmaps {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800203 param RsAllocation va
Jason Samsa2371512011-01-12 13:28:37 -0800204}
205
Jason Samse579df42009-08-10 14:55:26 -0700206AllocationRead {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800207 param RsAllocation va
208 param void * data
209 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700210
Tim Murray509ea5c2012-11-13 11:56:40 -0800211Allocation1DRead {
212 param RsAllocation va
213 param uint32_t xoff
214 param uint32_t lod
215 param uint32_t count
216 param void *data
217 }
218
Tim Murray7b3e3092012-11-16 13:32:24 -0800219Allocation2DRead {
220 param RsAllocation va
221 param uint32_t xoff
222 param uint32_t yoff
223 param uint32_t lod
224 param RsAllocationCubemapFace face
225 param uint32_t w
226 param uint32_t h
227 param void *data
Tim Murray358747a2012-11-26 13:52:04 -0800228 param size_t stride
Tim Murray7b3e3092012-11-16 13:32:24 -0800229}
Tim Murray509ea5c2012-11-13 11:56:40 -0800230
Tim Murray8c1da3f2013-07-17 12:22:19 -0700231
Jason Sams366c9c82010-12-08 16:14:36 -0800232AllocationSyncAll {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800233 param RsAllocation va
234 param RsAllocationUsageType src
Jason Sams366c9c82010-12-08 16:14:36 -0800235}
236
Jason Sams96abf812010-10-05 13:32:49 -0700237AllocationResize1D {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800238 param RsAllocation va
239 param uint32_t dimX
240 }
Jason Sams96abf812010-10-05 13:32:49 -0700241
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700242AllocationCopy2DRange {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800243 param RsAllocation dest
244 param uint32_t destXoff
245 param uint32_t destYoff
246 param uint32_t destMip
247 param uint32_t destFace
248 param uint32_t width
249 param uint32_t height
250 param RsAllocation src
251 param uint32_t srcXoff
252 param uint32_t srcYoff
253 param uint32_t srcMip
254 param uint32_t srcFace
255 }
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700256
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700257AllocationCopy3DRange {
258 param RsAllocation dest
259 param uint32_t destXoff
260 param uint32_t destYoff
261 param uint32_t destZoff
262 param uint32_t destMip
263 param uint32_t width
264 param uint32_t height
265 param uint32_t depth
266 param RsAllocation src
267 param uint32_t srcXoff
268 param uint32_t srcYoff
269 param uint32_t srcZoff
270 param uint32_t srcMip
271 }
272
Yang Ni1ffd86b2015-01-07 09:16:40 -0800273ClosureCreate {
274 direct
275 param RsScriptKernelID kernelID
276 param RsAllocation returnValue
277 param RsScriptFieldID * fieldIDs
278 param uintptr_t * values
279 param size_t * sizes
280 param RsClosure * depClosures
281 param RsScriptFieldID * depFieldIDs
282 ret RsClosure
283 }
284
285ClosureSetArg {
286 param RsClosure closureID
287 param uint32_t index
288 param uintptr_t value
289 param size_t valueSize
290}
291
292ClosureSetGlobal {
293 param RsClosure closureID
294 param RsScriptFieldID fieldID
295 param uintptr_t value
296 param size_t valueSize
297}
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700298
Jason Sams326e0dd2009-05-22 14:03:28 -0700299SamplerCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700300 direct
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700301 param RsSamplerValue magFilter
302 param RsSamplerValue minFilter
303 param RsSamplerValue wrapS
304 param RsSamplerValue wrapT
305 param RsSamplerValue wrapR
306 param float mAniso
307 ret RsSampler
308}
Jason Sams326e0dd2009-05-22 14:03:28 -0700309
310ScriptBindAllocation {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800311 param RsScript vtm
312 param RsAllocation va
313 param uint32_t slot
314 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700315
Jason Samsd34b7252009-08-04 16:58:20 -0700316ScriptSetTimeZone {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800317 param RsScript s
318 param const char * timeZone
319 }
Romain Guy98e10fd2009-07-30 18:45:01 -0700320
Jason Sams8c6bc692009-09-16 15:04:38 -0700321ScriptInvoke {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800322 param RsScript s
323 param uint32_t slot
324 }
Jason Sams8c6bc692009-09-16 15:04:38 -0700325
Jason Samsbe36bf32010-05-11 14:03:58 -0700326ScriptInvokeV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800327 param RsScript s
328 param uint32_t slot
329 param const void * data
330 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700331
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700332ScriptForEach {
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700333 param RsScript s
334 param uint32_t slot
335 param RsAllocation ain
336 param RsAllocation aout
337 param const void * usr
Tim Murrayd4ecb172013-02-07 12:17:03 -0800338 param const RsScriptCall * sc
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700339}
340
Chris Wailes4b3c34e2014-06-11 12:00:29 -0700341ScriptForEachMulti {
342 param RsScript s
343 param uint32_t slot
344 param RsAllocation * ains
345 param RsAllocation aout
346 param const void * usr
347 param const RsScriptCall * sc
348}
349
Jason Samsbe36bf32010-05-11 14:03:58 -0700350ScriptSetVarI {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800351 param RsScript s
352 param uint32_t slot
353 param int value
354 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700355
Jason Samsa5eb6e12010-11-16 17:37:02 -0800356ScriptSetVarObj {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800357 param RsScript s
358 param uint32_t slot
359 param RsObjectBase value
360 }
Jason Samsa5eb6e12010-11-16 17:37:02 -0800361
Stephen Hines0977c942010-10-11 10:54:21 -0700362ScriptSetVarJ {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800363 param RsScript s
364 param uint32_t slot
365 param int64_t value
366 }
Stephen Hines0977c942010-10-11 10:54:21 -0700367
Jason Samsbe36bf32010-05-11 14:03:58 -0700368ScriptSetVarF {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800369 param RsScript s
370 param uint32_t slot
371 param float value
372 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700373
Stephen Hines6d0a0742010-09-20 17:20:30 -0700374ScriptSetVarD {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800375 param RsScript s
376 param uint32_t slot
377 param double value
378 }
Stephen Hines6d0a0742010-09-20 17:20:30 -0700379
Jason Samsbe36bf32010-05-11 14:03:58 -0700380ScriptSetVarV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800381 param RsScript s
382 param uint32_t slot
383 param const void * data
384 }
Jason Samsfa517192009-08-13 12:59:04 -0700385
Tim Murray9c642392013-04-11 13:29:59 -0700386ScriptGetVarV {
387 param RsScript s
388 param uint32_t slot
389 param void * data
390 sync
391 }
392
Stephen Hines2980f072012-04-09 18:26:29 -0700393ScriptSetVarVE {
394 param RsScript s
395 param uint32_t slot
396 param const void * data
397 param RsElement e
Stephen Hinesac8d1462014-06-25 00:01:23 -0700398 param const uint32_t * dims
Stephen Hines2980f072012-04-09 18:26:29 -0700399 }
400
Jason Samsfa517192009-08-13 12:59:04 -0700401
Jason Sams326e0dd2009-05-22 14:03:28 -0700402ScriptCCreate {
Shih-wei Liao9503b662010-11-08 01:33:59 -0800403 param const char * resName
Shih-wei Liao15849d92010-12-10 01:03:59 -0800404 param const char * cacheDir
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800405 param const char * text
406 ret RsScript
407 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700408
Jason Sams8eaba4f2012-08-14 14:38:05 -0700409ScriptIntrinsicCreate {
410 param uint32_t id
411 param RsElement eid
412 ret RsScript
413 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700414
Jason Samsdbe66d62012-09-17 13:54:41 -0700415ScriptKernelIDCreate {
416 direct
417 param RsScript sid
418 param int slot
419 param int sig
420 ret RsScriptKernelID
421 }
422
423ScriptFieldIDCreate {
424 direct
425 param RsScript sid
426 param int slot
427 ret RsScriptFieldID
428 }
429
430ScriptGroupCreate {
431 direct
432 param RsScriptKernelID * kernels
433 param RsScriptKernelID * src
434 param RsScriptKernelID * dstK
435 param RsScriptFieldID * dstF
436 param const RsType * type
437 ret RsScriptGroup
438}
439
440ScriptGroupSetOutput {
441 param RsScriptGroup group
442 param RsScriptKernelID kernel
443 param RsAllocation alloc
444}
445
446ScriptGroupSetInput {
447 param RsScriptGroup group
448 param RsScriptKernelID kernel
449 param RsAllocation alloc
450}
451
452ScriptGroupExecute {
453 param RsScriptGroup group
454}
455
Yang Ni1ffd86b2015-01-07 09:16:40 -0800456ScriptGroup2Create{
457 direct
458 param RsClosure * closures
459 ret RsScriptGroup2
460}
461
Tim Murray4a92d122013-07-22 10:56:18 -0700462AllocationIoSend {
463 param RsAllocation alloc
464 }
Jason Samsdbe66d62012-09-17 13:54:41 -0700465
Tim Murray4a92d122013-07-22 10:56:18 -0700466AllocationIoReceive {
467 param RsAllocation alloc
468 }