blob: efae43e8156e4acd9d4cc31a90fdd7c1d9c76069 [file] [log] [blame]
Jason Sams186e5912011-04-26 14:50:00 -07001ContextDestroy {
Yang Ni5e480022016-04-06 09:34:34 -07002 direct
Jason Sams186e5912011-04-26 14:50:00 -07003}
4
5ContextGetMessage {
6 direct
7 param void *data
8 param size_t *receiveLen
Jason Sams1a4efa32011-05-17 15:01:29 -07009 param uint32_t *usrID
Jason Sams186e5912011-04-26 14:50:00 -070010 ret RsMessageToClientType
11}
12
13ContextPeekMessage {
14 direct
15 param size_t *receiveLen
Jason Sams1a4efa32011-05-17 15:01:29 -070016 param uint32_t *usrID
Jason Sams186e5912011-04-26 14:50:00 -070017 ret RsMessageToClientType
18}
19
Jason Sams70265202013-02-05 19:20:47 -080020ContextSendMessage {
21 param uint32_t id
22 param const uint8_t *data
23}
24
Jason Sams186e5912011-04-26 14:50:00 -070025ContextInitToClient {
26 direct
27}
28
29ContextDeinitToClient {
30 direct
31}
32
Tim Murrayea6e0622015-04-07 15:43:11 -070033ContextSetCacheDir {
34 direct
35 param const char * cacheDir
36}
37
Jason Samsc975cf42011-04-28 18:26:48 -070038TypeCreate {
Jason Sams186e5912011-04-26 14:50:00 -070039 direct
40 param RsElement e
41 param uint32_t dimX
42 param uint32_t dimY
43 param uint32_t dimZ
Stephen Hines8f615d62013-12-20 12:23:32 -080044 param bool mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070045 param bool faces
Jason Samsa572aca2013-01-09 11:52:26 -080046 param uint32_t yuv
Jason Sams186e5912011-04-26 14:50:00 -070047 ret RsType
48}
49
Jason Samsc7968a02014-11-11 16:24:36 -080050TypeCreate2 {
51 direct
52 param const RsTypeCreateParams *dat
53 ret RsType
54}
55
Jason Samsc975cf42011-04-28 18:26:48 -070056AllocationCreateTyped {
Jason Sams186e5912011-04-26 14:50:00 -070057 direct
58 param RsType vtype
Stephen Hines8f615d62013-12-20 12:23:32 -080059 param RsAllocationMipmapControl mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070060 param uint32_t usages
Tim Murray099bc262013-03-20 16:54:03 -070061 param uintptr_t ptr
Jason Sams186e5912011-04-26 14:50:00 -070062 ret RsAllocation
63}
64
Jason Samsc975cf42011-04-28 18:26:48 -070065AllocationCreateFromBitmap {
Jason Sams186e5912011-04-26 14:50:00 -070066 direct
67 param RsType vtype
Stephen Hines8f615d62013-12-20 12:23:32 -080068 param RsAllocationMipmapControl mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070069 param const void *data
70 param uint32_t usages
71 ret RsAllocation
72}
73
Jason Samsc975cf42011-04-28 18:26:48 -070074AllocationCubeCreateFromBitmap {
Jason Sams186e5912011-04-26 14:50:00 -070075 direct
76 param RsType vtype
Stephen Hines8f615d62013-12-20 12:23:32 -080077 param RsAllocationMipmapControl mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070078 param const void *data
79 param uint32_t usages
80 ret RsAllocation
81}
82
Miao Wang75474682015-10-26 16:50:13 -070083AllocationSetupBufferQueue {
84 param RsAllocation alloc
85 param uint32_t numAlloc
86 sync
87}
88
89AllocationShareBufferQueue {
90 param RsAllocation alloc1
91 param RsAllocation alloc2
92 sync
93}
94
Jason Sams733396b2013-02-22 12:46:18 -080095AllocationGetSurface {
Jason Sams41e373d2012-01-13 14:01:20 -080096 param RsAllocation alloc
Jason Sams3522f402012-03-23 11:47:26 -070097 sync
Jason Sams733396b2013-02-22 12:46:18 -080098 ret RsNativeWindow
Jason Sams3522f402012-03-23 11:47:26 -070099}
100
Jason Sams7ac2a4d2012-02-15 12:04:24 -0800101AllocationSetSurface {
102 param RsAllocation alloc
103 param RsNativeWindow sur
104 sync
105 }
106
Jason Samsbc9dc272015-02-09 12:50:22 -0800107AllocationAdapterCreate {
108 direct
109 param RsType vtype
110 param RsAllocation baseAlloc
111 ret RsAllocation
112}
113
114AllocationAdapterOffset {
115 param RsAllocation alloc
116 param const uint32_t *offsets
117}
118
Jason Sams8c880902010-06-15 12:15:57 -0700119ContextFinish {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800120 sync
121 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700122
Jason Samsc21cf402009-11-17 17:26:46 -0800123ContextDump {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800124 param int32_t bits
Jason Samsc21cf402009-11-17 17:26:46 -0800125}
126
Jason Sams613cad12009-11-12 15:10:25 -0800127ContextSetPriority {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800128 param int32_t priority
129 }
Jason Sams613cad12009-11-12 15:10:25 -0800130
Jason Sams741aac92010-12-24 14:38:39 -0800131ContextDestroyWorker {
Tim Murray8c1da3f2013-07-17 12:22:19 -0700132 sync
Jason Sams1dcefab2010-12-09 12:19:46 -0800133}
134
Jason Samsa0a1b6f2009-06-10 15:04:38 -0700135AssignName {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800136 param RsObjectBase obj
137 param const char *name
138 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700139
Jason Sams707aaf32009-08-18 14:14:24 -0700140ObjDestroy {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800141 param RsAsyncVoidPtr objPtr
Tim Murray397b0b12014-01-07 15:35:08 -0800142 handcodeApi
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800143 }
Jason Sams707aaf32009-08-18 14:14:24 -0700144
Jason Samsd01d9702009-12-23 14:35:29 -0800145ElementCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700146 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800147 param RsDataType mType
148 param RsDataKind mKind
149 param bool mNormalized
150 param uint32_t mVectorSize
151 ret RsElement
152 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700153
Jason Samsd01d9702009-12-23 14:35:29 -0800154ElementCreate2 {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700155 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800156 param const RsElement * elements
157 param const char ** names
158 param const uint32_t * arraySize
159 ret RsElement
160 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700161
Jason Sams837e3882010-12-10 16:03:15 -0800162AllocationCopyToBitmap {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800163 param RsAllocation alloc
164 param void * data
165 }
Alex Sakhartchouk39f2ef62010-10-11 12:35:15 -0700166
Jason Samsb8a94e22014-02-24 17:52:32 -0800167AllocationGetPointer {
168 param RsAllocation va
169 param uint32_t lod
170 param RsAllocationCubemapFace face
171 param uint32_t z
172 param uint32_t array
173 param size_t *stride
Logan Chien21b04612015-04-19 22:54:42 +0800174 ret void *
Jason Samsb8a94e22014-02-24 17:52:32 -0800175 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700176
Jason Sams4b45b892010-12-29 14:31:29 -0800177Allocation1DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800178 param RsAllocation va
179 param uint32_t xoff
180 param uint32_t lod
181 param uint32_t count
182 param const void *data
183 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700184
Jason Sams4b45b892010-12-29 14:31:29 -0800185Allocation1DElementData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800186 param RsAllocation va
187 param uint32_t x
188 param uint32_t lod
189 param const void *data
190 param size_t comp_offset
191 }
Jason Sams5f0c84c2010-08-31 13:50:42 -0700192
Miao Wangcc8cea72015-02-19 18:14:46 -0800193AllocationElementData {
194 param RsAllocation va
195 param uint32_t x
196 param uint32_t y
197 param uint32_t z
198 param uint32_t lod
199 param const void *data
200 param size_t comp_offset
201 }
202
Jason Sams4b45b892010-12-29 14:31:29 -0800203Allocation2DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800204 param RsAllocation va
205 param uint32_t xoff
206 param uint32_t yoff
207 param uint32_t lod
208 param RsAllocationCubemapFace face
209 param uint32_t w
210 param uint32_t h
211 param const void *data
Tim Murray358747a2012-11-26 13:52:04 -0800212 param size_t stride
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800213 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700214
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700215Allocation3DData {
216 param RsAllocation va
217 param uint32_t xoff
218 param uint32_t yoff
219 param uint32_t zoff
220 param uint32_t lod
221 param uint32_t w
222 param uint32_t h
223 param uint32_t d
224 param const void *data
225 param size_t stride
226 }
227
Jason Samsa2371512011-01-12 13:28:37 -0800228AllocationGenerateMipmaps {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800229 param RsAllocation va
Jason Samsa2371512011-01-12 13:28:37 -0800230}
231
Jason Samse579df42009-08-10 14:55:26 -0700232AllocationRead {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800233 param RsAllocation va
234 param void * data
235 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700236
Tim Murray509ea5c2012-11-13 11:56:40 -0800237Allocation1DRead {
238 param RsAllocation va
239 param uint32_t xoff
240 param uint32_t lod
241 param uint32_t count
242 param void *data
243 }
244
Miao Wangcc8cea72015-02-19 18:14:46 -0800245AllocationElementRead {
246 param RsAllocation va
247 param uint32_t x
248 param uint32_t y
249 param uint32_t z
250 param uint32_t lod
251 param void *data
252 param size_t comp_offset
253 }
254
Tim Murray7b3e3092012-11-16 13:32:24 -0800255Allocation2DRead {
256 param RsAllocation va
257 param uint32_t xoff
258 param uint32_t yoff
259 param uint32_t lod
260 param RsAllocationCubemapFace face
261 param uint32_t w
262 param uint32_t h
263 param void *data
Tim Murray358747a2012-11-26 13:52:04 -0800264 param size_t stride
Tim Murray7b3e3092012-11-16 13:32:24 -0800265}
Tim Murray509ea5c2012-11-13 11:56:40 -0800266
Miao Wangcc8cea72015-02-19 18:14:46 -0800267Allocation3DRead {
268 param RsAllocation va
269 param uint32_t xoff
270 param uint32_t yoff
271 param uint32_t zoff
272 param uint32_t lod
273 param uint32_t w
274 param uint32_t h
275 param uint32_t d
276 param void *data
277 param size_t stride
278 }
Tim Murray8c1da3f2013-07-17 12:22:19 -0700279
Jason Sams366c9c82010-12-08 16:14:36 -0800280AllocationSyncAll {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800281 param RsAllocation va
282 param RsAllocationUsageType src
Jason Sams366c9c82010-12-08 16:14:36 -0800283}
284
Jason Sams96abf812010-10-05 13:32:49 -0700285AllocationResize1D {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800286 param RsAllocation va
287 param uint32_t dimX
288 }
Jason Sams96abf812010-10-05 13:32:49 -0700289
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700290AllocationCopy2DRange {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800291 param RsAllocation dest
292 param uint32_t destXoff
293 param uint32_t destYoff
294 param uint32_t destMip
295 param uint32_t destFace
296 param uint32_t width
297 param uint32_t height
298 param RsAllocation src
299 param uint32_t srcXoff
300 param uint32_t srcYoff
301 param uint32_t srcMip
302 param uint32_t srcFace
303 }
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700304
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700305AllocationCopy3DRange {
306 param RsAllocation dest
307 param uint32_t destXoff
308 param uint32_t destYoff
309 param uint32_t destZoff
310 param uint32_t destMip
311 param uint32_t width
312 param uint32_t height
313 param uint32_t depth
314 param RsAllocation src
315 param uint32_t srcXoff
316 param uint32_t srcYoff
317 param uint32_t srcZoff
318 param uint32_t srcMip
319 }
320
Yang Ni1ffd86b2015-01-07 09:16:40 -0800321ClosureCreate {
322 direct
323 param RsScriptKernelID kernelID
324 param RsAllocation returnValue
325 param RsScriptFieldID * fieldIDs
Yang Nifef0cd42015-11-11 15:08:16 -0800326 param const int64_t * values
327 param const int * sizes
Yang Ni1ffd86b2015-01-07 09:16:40 -0800328 param RsClosure * depClosures
329 param RsScriptFieldID * depFieldIDs
330 ret RsClosure
331 }
332
Yang Nieb9aa672015-01-27 14:32:25 -0800333InvokeClosureCreate {
334 direct
335 param RsScriptInvokeID invokeID
336 param const void * params
337 param const RsScriptFieldID * fieldIDs
Yang Nifef0cd42015-11-11 15:08:16 -0800338 param const int64_t * values
Yang Nibd0af2d2015-03-23 17:14:58 -0700339 param const int * sizes
Yang Nieb9aa672015-01-27 14:32:25 -0800340 ret RsClosure
341}
342
Yang Ni1ffd86b2015-01-07 09:16:40 -0800343ClosureSetArg {
344 param RsClosure closureID
345 param uint32_t index
346 param uintptr_t value
Yang Nifef0cd42015-11-11 15:08:16 -0800347 param int valueSize
Yang Ni1ffd86b2015-01-07 09:16:40 -0800348}
349
350ClosureSetGlobal {
351 param RsClosure closureID
352 param RsScriptFieldID fieldID
Yang Nifef0cd42015-11-11 15:08:16 -0800353 param int64_t value
354 param int valueSize
Yang Ni1ffd86b2015-01-07 09:16:40 -0800355}
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700356
Jason Sams326e0dd2009-05-22 14:03:28 -0700357SamplerCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700358 direct
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700359 param RsSamplerValue magFilter
360 param RsSamplerValue minFilter
361 param RsSamplerValue wrapS
362 param RsSamplerValue wrapT
363 param RsSamplerValue wrapR
364 param float mAniso
365 ret RsSampler
366}
Jason Sams326e0dd2009-05-22 14:03:28 -0700367
368ScriptBindAllocation {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800369 param RsScript vtm
370 param RsAllocation va
371 param uint32_t slot
372 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700373
Jason Samsd34b7252009-08-04 16:58:20 -0700374ScriptSetTimeZone {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800375 param RsScript s
376 param const char * timeZone
377 }
Romain Guy98e10fd2009-07-30 18:45:01 -0700378
Yang Nieb9aa672015-01-27 14:32:25 -0800379ScriptInvokeIDCreate {
380 param RsScript s
381 param uint32_t slot
Logan Chien21b04612015-04-19 22:54:42 +0800382 ret RsScriptInvokeID
Yang Nieb9aa672015-01-27 14:32:25 -0800383 }
384
Jason Sams8c6bc692009-09-16 15:04:38 -0700385ScriptInvoke {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800386 param RsScript s
387 param uint32_t slot
388 }
Jason Sams8c6bc692009-09-16 15:04:38 -0700389
Jason Samsbe36bf32010-05-11 14:03:58 -0700390ScriptInvokeV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800391 param RsScript s
392 param uint32_t slot
393 param const void * data
394 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700395
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700396ScriptForEach {
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700397 param RsScript s
398 param uint32_t slot
399 param RsAllocation ain
400 param RsAllocation aout
401 param const void * usr
Tim Murrayd4ecb172013-02-07 12:17:03 -0800402 param const RsScriptCall * sc
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700403}
404
Chris Wailes4b3c34e2014-06-11 12:00:29 -0700405ScriptForEachMulti {
406 param RsScript s
407 param uint32_t slot
408 param RsAllocation * ains
409 param RsAllocation aout
410 param const void * usr
411 param const RsScriptCall * sc
412}
413
Matt Wala39a9d9b2015-07-20 15:38:17 -0700414ScriptReduce {
415 param RsScript s
416 param uint32_t slot
David Gross6c1876b2016-01-15 11:52:14 -0800417 param RsAllocation * ains
418 param RsAllocation aout
419 param const RsScriptCall * sc
420}
421
Jason Samsbe36bf32010-05-11 14:03:58 -0700422ScriptSetVarI {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800423 param RsScript s
424 param uint32_t slot
425 param int value
426 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700427
Jason Samsa5eb6e12010-11-16 17:37:02 -0800428ScriptSetVarObj {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800429 param RsScript s
430 param uint32_t slot
431 param RsObjectBase value
432 }
Jason Samsa5eb6e12010-11-16 17:37:02 -0800433
Stephen Hines0977c942010-10-11 10:54:21 -0700434ScriptSetVarJ {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800435 param RsScript s
436 param uint32_t slot
437 param int64_t value
438 }
Stephen Hines0977c942010-10-11 10:54:21 -0700439
Jason Samsbe36bf32010-05-11 14:03:58 -0700440ScriptSetVarF {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800441 param RsScript s
442 param uint32_t slot
443 param float value
444 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700445
Stephen Hines6d0a0742010-09-20 17:20:30 -0700446ScriptSetVarD {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800447 param RsScript s
448 param uint32_t slot
449 param double value
450 }
Stephen Hines6d0a0742010-09-20 17:20:30 -0700451
Jason Samsbe36bf32010-05-11 14:03:58 -0700452ScriptSetVarV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800453 param RsScript s
454 param uint32_t slot
455 param const void * data
456 }
Jason Samsfa517192009-08-13 12:59:04 -0700457
Tim Murray9c642392013-04-11 13:29:59 -0700458ScriptGetVarV {
459 param RsScript s
460 param uint32_t slot
461 param void * data
462 sync
463 }
464
Stephen Hines2980f072012-04-09 18:26:29 -0700465ScriptSetVarVE {
466 param RsScript s
467 param uint32_t slot
468 param const void * data
469 param RsElement e
Stephen Hinesac8d1462014-06-25 00:01:23 -0700470 param const uint32_t * dims
Stephen Hines2980f072012-04-09 18:26:29 -0700471 }
472
Jason Samsfa517192009-08-13 12:59:04 -0700473
Jason Sams326e0dd2009-05-22 14:03:28 -0700474ScriptCCreate {
Shih-wei Liao9503b662010-11-08 01:33:59 -0800475 param const char * resName
Shih-wei Liao15849d92010-12-10 01:03:59 -0800476 param const char * cacheDir
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800477 param const char * text
478 ret RsScript
479 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700480
Jason Sams8eaba4f2012-08-14 14:38:05 -0700481ScriptIntrinsicCreate {
482 param uint32_t id
483 param RsElement eid
484 ret RsScript
485 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700486
Jason Samsdbe66d62012-09-17 13:54:41 -0700487ScriptKernelIDCreate {
488 direct
489 param RsScript sid
490 param int slot
491 param int sig
492 ret RsScriptKernelID
493 }
494
495ScriptFieldIDCreate {
496 direct
497 param RsScript sid
498 param int slot
499 ret RsScriptFieldID
500 }
501
502ScriptGroupCreate {
503 direct
504 param RsScriptKernelID * kernels
505 param RsScriptKernelID * src
506 param RsScriptKernelID * dstK
507 param RsScriptFieldID * dstF
508 param const RsType * type
509 ret RsScriptGroup
510}
511
512ScriptGroupSetOutput {
513 param RsScriptGroup group
514 param RsScriptKernelID kernel
515 param RsAllocation alloc
516}
517
518ScriptGroupSetInput {
519 param RsScriptGroup group
520 param RsScriptKernelID kernel
521 param RsAllocation alloc
522}
523
524ScriptGroupExecute {
525 param RsScriptGroup group
526}
527
Yang Ni1ffd86b2015-01-07 09:16:40 -0800528ScriptGroup2Create{
529 direct
Yang Ni8b942222015-04-02 17:48:28 -0700530 param const char * name
Yang Nida0f0692015-01-12 13:03:40 -0800531 param const char * cacheDir
Yang Ni1ffd86b2015-01-07 09:16:40 -0800532 param RsClosure * closures
533 ret RsScriptGroup2
534}
535
Tim Murray4a92d122013-07-22 10:56:18 -0700536AllocationIoSend {
537 param RsAllocation alloc
538 }
Jason Samsdbe66d62012-09-17 13:54:41 -0700539
Tim Murray4a92d122013-07-22 10:56:18 -0700540AllocationIoReceive {
541 param RsAllocation alloc
Miao Wang75474682015-10-26 16:50:13 -0700542 ret int64_t
Tim Murray4a92d122013-07-22 10:56:18 -0700543 }