blob: 45f960c9c7feae4fa0608ec304238266857f406a [file] [log] [blame]
Jason Sams186e5912011-04-26 14:50:00 -07001ContextDestroy {
2 direct
3}
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
Jason Sams733396b2013-02-22 12:46:18 -080083AllocationGetSurface {
Jason Sams41e373d2012-01-13 14:01:20 -080084 param RsAllocation alloc
Jason Sams3522f402012-03-23 11:47:26 -070085 sync
Jason Sams733396b2013-02-22 12:46:18 -080086 ret RsNativeWindow
Jason Sams3522f402012-03-23 11:47:26 -070087}
88
Jason Sams7ac2a4d2012-02-15 12:04:24 -080089AllocationSetSurface {
90 param RsAllocation alloc
91 param RsNativeWindow sur
92 sync
93 }
94
Jason Samsbc9dc272015-02-09 12:50:22 -080095AllocationAdapterCreate {
96 direct
97 param RsType vtype
98 param RsAllocation baseAlloc
99 ret RsAllocation
100}
101
102AllocationAdapterOffset {
103 param RsAllocation alloc
104 param const uint32_t *offsets
105}
106
Jason Sams8c880902010-06-15 12:15:57 -0700107ContextFinish {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800108 sync
109 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700110
Jason Samsc21cf402009-11-17 17:26:46 -0800111ContextDump {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800112 param int32_t bits
Jason Samsc21cf402009-11-17 17:26:46 -0800113}
114
Jason Sams613cad12009-11-12 15:10:25 -0800115ContextSetPriority {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800116 param int32_t priority
117 }
Jason Sams613cad12009-11-12 15:10:25 -0800118
Jason Sams741aac92010-12-24 14:38:39 -0800119ContextDestroyWorker {
Tim Murray8c1da3f2013-07-17 12:22:19 -0700120 sync
Jason Sams1dcefab2010-12-09 12:19:46 -0800121}
122
Jason Samsa0a1b6f2009-06-10 15:04:38 -0700123AssignName {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800124 param RsObjectBase obj
125 param const char *name
126 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700127
Jason Sams707aaf32009-08-18 14:14:24 -0700128ObjDestroy {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800129 param RsAsyncVoidPtr objPtr
Tim Murray397b0b12014-01-07 15:35:08 -0800130 handcodeApi
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800131 }
Jason Sams707aaf32009-08-18 14:14:24 -0700132
Jason Samsd01d9702009-12-23 14:35:29 -0800133ElementCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700134 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800135 param RsDataType mType
136 param RsDataKind mKind
137 param bool mNormalized
138 param uint32_t mVectorSize
139 ret RsElement
140 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700141
Jason Samsd01d9702009-12-23 14:35:29 -0800142ElementCreate2 {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700143 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800144 param const RsElement * elements
145 param const char ** names
146 param const uint32_t * arraySize
147 ret RsElement
148 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700149
Jason Sams837e3882010-12-10 16:03:15 -0800150AllocationCopyToBitmap {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800151 param RsAllocation alloc
152 param void * data
153 }
Alex Sakhartchouk39f2ef62010-10-11 12:35:15 -0700154
Jason Samsb8a94e22014-02-24 17:52:32 -0800155AllocationGetPointer {
156 param RsAllocation va
157 param uint32_t lod
158 param RsAllocationCubemapFace face
159 param uint32_t z
160 param uint32_t array
161 param size_t *stride
Logan Chien21b04612015-04-19 22:54:42 +0800162 ret void *
Jason Samsb8a94e22014-02-24 17:52:32 -0800163 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700164
Jason Sams4b45b892010-12-29 14:31:29 -0800165Allocation1DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800166 param RsAllocation va
167 param uint32_t xoff
168 param uint32_t lod
169 param uint32_t count
170 param const void *data
171 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700172
Jason Sams4b45b892010-12-29 14:31:29 -0800173Allocation1DElementData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800174 param RsAllocation va
175 param uint32_t x
176 param uint32_t lod
177 param const void *data
178 param size_t comp_offset
179 }
Jason Sams5f0c84c2010-08-31 13:50:42 -0700180
Miao Wangcc8cea72015-02-19 18:14:46 -0800181AllocationElementData {
182 param RsAllocation va
183 param uint32_t x
184 param uint32_t y
185 param uint32_t z
186 param uint32_t lod
187 param const void *data
188 param size_t comp_offset
189 }
190
Jason Sams4b45b892010-12-29 14:31:29 -0800191Allocation2DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800192 param RsAllocation va
193 param uint32_t xoff
194 param uint32_t yoff
195 param uint32_t lod
196 param RsAllocationCubemapFace face
197 param uint32_t w
198 param uint32_t h
199 param const void *data
Tim Murray358747a2012-11-26 13:52:04 -0800200 param size_t stride
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800201 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700202
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700203Allocation3DData {
204 param RsAllocation va
205 param uint32_t xoff
206 param uint32_t yoff
207 param uint32_t zoff
208 param uint32_t lod
209 param uint32_t w
210 param uint32_t h
211 param uint32_t d
212 param const void *data
213 param size_t stride
214 }
215
Jason Samsa2371512011-01-12 13:28:37 -0800216AllocationGenerateMipmaps {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800217 param RsAllocation va
Jason Samsa2371512011-01-12 13:28:37 -0800218}
219
Jason Samse579df42009-08-10 14:55:26 -0700220AllocationRead {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800221 param RsAllocation va
222 param void * data
223 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700224
Tim Murray509ea5c2012-11-13 11:56:40 -0800225Allocation1DRead {
226 param RsAllocation va
227 param uint32_t xoff
228 param uint32_t lod
229 param uint32_t count
230 param void *data
231 }
232
Miao Wangcc8cea72015-02-19 18:14:46 -0800233AllocationElementRead {
234 param RsAllocation va
235 param uint32_t x
236 param uint32_t y
237 param uint32_t z
238 param uint32_t lod
239 param void *data
240 param size_t comp_offset
241 }
242
Tim Murray7b3e3092012-11-16 13:32:24 -0800243Allocation2DRead {
244 param RsAllocation va
245 param uint32_t xoff
246 param uint32_t yoff
247 param uint32_t lod
248 param RsAllocationCubemapFace face
249 param uint32_t w
250 param uint32_t h
251 param void *data
Tim Murray358747a2012-11-26 13:52:04 -0800252 param size_t stride
Tim Murray7b3e3092012-11-16 13:32:24 -0800253}
Tim Murray509ea5c2012-11-13 11:56:40 -0800254
Miao Wangcc8cea72015-02-19 18:14:46 -0800255Allocation3DRead {
256 param RsAllocation va
257 param uint32_t xoff
258 param uint32_t yoff
259 param uint32_t zoff
260 param uint32_t lod
261 param uint32_t w
262 param uint32_t h
263 param uint32_t d
264 param void *data
265 param size_t stride
266 }
Tim Murray8c1da3f2013-07-17 12:22:19 -0700267
Jason Sams366c9c82010-12-08 16:14:36 -0800268AllocationSyncAll {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800269 param RsAllocation va
270 param RsAllocationUsageType src
Jason Sams366c9c82010-12-08 16:14:36 -0800271}
272
Jason Sams96abf812010-10-05 13:32:49 -0700273AllocationResize1D {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800274 param RsAllocation va
275 param uint32_t dimX
276 }
Jason Sams96abf812010-10-05 13:32:49 -0700277
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700278AllocationCopy2DRange {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800279 param RsAllocation dest
280 param uint32_t destXoff
281 param uint32_t destYoff
282 param uint32_t destMip
283 param uint32_t destFace
284 param uint32_t width
285 param uint32_t height
286 param RsAllocation src
287 param uint32_t srcXoff
288 param uint32_t srcYoff
289 param uint32_t srcMip
290 param uint32_t srcFace
291 }
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700292
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700293AllocationCopy3DRange {
294 param RsAllocation dest
295 param uint32_t destXoff
296 param uint32_t destYoff
297 param uint32_t destZoff
298 param uint32_t destMip
299 param uint32_t width
300 param uint32_t height
301 param uint32_t depth
302 param RsAllocation src
303 param uint32_t srcXoff
304 param uint32_t srcYoff
305 param uint32_t srcZoff
306 param uint32_t srcMip
307 }
308
Yang Ni1ffd86b2015-01-07 09:16:40 -0800309ClosureCreate {
310 direct
311 param RsScriptKernelID kernelID
312 param RsAllocation returnValue
313 param RsScriptFieldID * fieldIDs
Yang Nifef0cd42015-11-11 15:08:16 -0800314 param const int64_t * values
315 param const int * sizes
Yang Ni1ffd86b2015-01-07 09:16:40 -0800316 param RsClosure * depClosures
317 param RsScriptFieldID * depFieldIDs
318 ret RsClosure
319 }
320
Yang Nieb9aa672015-01-27 14:32:25 -0800321InvokeClosureCreate {
322 direct
323 param RsScriptInvokeID invokeID
324 param const void * params
325 param const RsScriptFieldID * fieldIDs
Yang Nifef0cd42015-11-11 15:08:16 -0800326 param const int64_t * values
Yang Nibd0af2d2015-03-23 17:14:58 -0700327 param const int * sizes
Yang Nieb9aa672015-01-27 14:32:25 -0800328 ret RsClosure
329}
330
Yang Ni1ffd86b2015-01-07 09:16:40 -0800331ClosureSetArg {
332 param RsClosure closureID
333 param uint32_t index
334 param uintptr_t value
Yang Nifef0cd42015-11-11 15:08:16 -0800335 param int valueSize
Yang Ni1ffd86b2015-01-07 09:16:40 -0800336}
337
338ClosureSetGlobal {
339 param RsClosure closureID
340 param RsScriptFieldID fieldID
Yang Nifef0cd42015-11-11 15:08:16 -0800341 param int64_t value
342 param int valueSize
Yang Ni1ffd86b2015-01-07 09:16:40 -0800343}
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700344
Jason Sams326e0dd2009-05-22 14:03:28 -0700345SamplerCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700346 direct
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700347 param RsSamplerValue magFilter
348 param RsSamplerValue minFilter
349 param RsSamplerValue wrapS
350 param RsSamplerValue wrapT
351 param RsSamplerValue wrapR
352 param float mAniso
353 ret RsSampler
354}
Jason Sams326e0dd2009-05-22 14:03:28 -0700355
356ScriptBindAllocation {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800357 param RsScript vtm
358 param RsAllocation va
359 param uint32_t slot
360 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700361
Jason Samsd34b7252009-08-04 16:58:20 -0700362ScriptSetTimeZone {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800363 param RsScript s
364 param const char * timeZone
365 }
Romain Guy98e10fd2009-07-30 18:45:01 -0700366
Yang Nieb9aa672015-01-27 14:32:25 -0800367ScriptInvokeIDCreate {
368 param RsScript s
369 param uint32_t slot
Logan Chien21b04612015-04-19 22:54:42 +0800370 ret RsScriptInvokeID
Yang Nieb9aa672015-01-27 14:32:25 -0800371 }
372
Jason Sams8c6bc692009-09-16 15:04:38 -0700373ScriptInvoke {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800374 param RsScript s
375 param uint32_t slot
376 }
Jason Sams8c6bc692009-09-16 15:04:38 -0700377
Jason Samsbe36bf32010-05-11 14:03:58 -0700378ScriptInvokeV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800379 param RsScript s
380 param uint32_t slot
381 param const void * data
382 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700383
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700384ScriptForEach {
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700385 param RsScript s
386 param uint32_t slot
387 param RsAllocation ain
388 param RsAllocation aout
389 param const void * usr
Tim Murrayd4ecb172013-02-07 12:17:03 -0800390 param const RsScriptCall * sc
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700391}
392
Chris Wailes4b3c34e2014-06-11 12:00:29 -0700393ScriptForEachMulti {
394 param RsScript s
395 param uint32_t slot
396 param RsAllocation * ains
397 param RsAllocation aout
398 param const void * usr
399 param const RsScriptCall * sc
400}
401
Matt Wala39a9d9b2015-07-20 15:38:17 -0700402ScriptReduce {
403 param RsScript s
404 param uint32_t slot
405 param RsAllocation ain
406 param RsAllocation aout
407 param const RsScriptCall * sc
408}
409
David Gross6c1876b2016-01-15 11:52:14 -0800410ScriptReduceNew {
411 param RsScript s
412 param uint32_t slot
413 param RsAllocation * ains
414 param RsAllocation aout
415 param const RsScriptCall * sc
416}
417
Jason Samsbe36bf32010-05-11 14:03:58 -0700418ScriptSetVarI {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800419 param RsScript s
420 param uint32_t slot
421 param int value
422 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700423
Jason Samsa5eb6e12010-11-16 17:37:02 -0800424ScriptSetVarObj {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800425 param RsScript s
426 param uint32_t slot
427 param RsObjectBase value
428 }
Jason Samsa5eb6e12010-11-16 17:37:02 -0800429
Stephen Hines0977c942010-10-11 10:54:21 -0700430ScriptSetVarJ {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800431 param RsScript s
432 param uint32_t slot
433 param int64_t value
434 }
Stephen Hines0977c942010-10-11 10:54:21 -0700435
Jason Samsbe36bf32010-05-11 14:03:58 -0700436ScriptSetVarF {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800437 param RsScript s
438 param uint32_t slot
439 param float value
440 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700441
Stephen Hines6d0a0742010-09-20 17:20:30 -0700442ScriptSetVarD {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800443 param RsScript s
444 param uint32_t slot
445 param double value
446 }
Stephen Hines6d0a0742010-09-20 17:20:30 -0700447
Jason Samsbe36bf32010-05-11 14:03:58 -0700448ScriptSetVarV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800449 param RsScript s
450 param uint32_t slot
451 param const void * data
452 }
Jason Samsfa517192009-08-13 12:59:04 -0700453
Tim Murray9c642392013-04-11 13:29:59 -0700454ScriptGetVarV {
455 param RsScript s
456 param uint32_t slot
457 param void * data
458 sync
459 }
460
Stephen Hines2980f072012-04-09 18:26:29 -0700461ScriptSetVarVE {
462 param RsScript s
463 param uint32_t slot
464 param const void * data
465 param RsElement e
Stephen Hinesac8d1462014-06-25 00:01:23 -0700466 param const uint32_t * dims
Stephen Hines2980f072012-04-09 18:26:29 -0700467 }
468
Jason Samsfa517192009-08-13 12:59:04 -0700469
Jason Sams326e0dd2009-05-22 14:03:28 -0700470ScriptCCreate {
Shih-wei Liao9503b662010-11-08 01:33:59 -0800471 param const char * resName
Shih-wei Liao15849d92010-12-10 01:03:59 -0800472 param const char * cacheDir
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800473 param const char * text
474 ret RsScript
475 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700476
Jason Sams8eaba4f2012-08-14 14:38:05 -0700477ScriptIntrinsicCreate {
478 param uint32_t id
479 param RsElement eid
480 ret RsScript
481 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700482
Jason Samsdbe66d62012-09-17 13:54:41 -0700483ScriptKernelIDCreate {
484 direct
485 param RsScript sid
486 param int slot
487 param int sig
488 ret RsScriptKernelID
489 }
490
491ScriptFieldIDCreate {
492 direct
493 param RsScript sid
494 param int slot
495 ret RsScriptFieldID
496 }
497
498ScriptGroupCreate {
499 direct
500 param RsScriptKernelID * kernels
501 param RsScriptKernelID * src
502 param RsScriptKernelID * dstK
503 param RsScriptFieldID * dstF
504 param const RsType * type
505 ret RsScriptGroup
506}
507
508ScriptGroupSetOutput {
509 param RsScriptGroup group
510 param RsScriptKernelID kernel
511 param RsAllocation alloc
512}
513
514ScriptGroupSetInput {
515 param RsScriptGroup group
516 param RsScriptKernelID kernel
517 param RsAllocation alloc
518}
519
520ScriptGroupExecute {
521 param RsScriptGroup group
522}
523
Yang Ni1ffd86b2015-01-07 09:16:40 -0800524ScriptGroup2Create{
525 direct
Yang Ni8b942222015-04-02 17:48:28 -0700526 param const char * name
Yang Nida0f0692015-01-12 13:03:40 -0800527 param const char * cacheDir
Yang Ni1ffd86b2015-01-07 09:16:40 -0800528 param RsClosure * closures
529 ret RsScriptGroup2
530}
531
Tim Murray4a92d122013-07-22 10:56:18 -0700532AllocationIoSend {
533 param RsAllocation alloc
534 }
Jason Samsdbe66d62012-09-17 13:54:41 -0700535
Tim Murray4a92d122013-07-22 10:56:18 -0700536AllocationIoReceive {
537 param RsAllocation alloc
538 }