blob: e9051ac0d4f33713639bee80516b2cc27f3ee0fc [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
314 param uintptr_t * values
Yang Nibd0af2d2015-03-23 17:14:58 -0700315 param 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
326 param const uintptr_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
335 param size_t valueSize
336}
337
338ClosureSetGlobal {
339 param RsClosure closureID
340 param RsScriptFieldID fieldID
341 param uintptr_t value
342 param size_t valueSize
343}
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
Jason Samsbe36bf32010-05-11 14:03:58 -0700402ScriptSetVarI {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800403 param RsScript s
404 param uint32_t slot
405 param int value
406 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700407
Jason Samsa5eb6e12010-11-16 17:37:02 -0800408ScriptSetVarObj {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800409 param RsScript s
410 param uint32_t slot
411 param RsObjectBase value
412 }
Jason Samsa5eb6e12010-11-16 17:37:02 -0800413
Stephen Hines0977c942010-10-11 10:54:21 -0700414ScriptSetVarJ {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800415 param RsScript s
416 param uint32_t slot
417 param int64_t value
418 }
Stephen Hines0977c942010-10-11 10:54:21 -0700419
Jason Samsbe36bf32010-05-11 14:03:58 -0700420ScriptSetVarF {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800421 param RsScript s
422 param uint32_t slot
423 param float value
424 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700425
Stephen Hines6d0a0742010-09-20 17:20:30 -0700426ScriptSetVarD {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800427 param RsScript s
428 param uint32_t slot
429 param double value
430 }
Stephen Hines6d0a0742010-09-20 17:20:30 -0700431
Jason Samsbe36bf32010-05-11 14:03:58 -0700432ScriptSetVarV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800433 param RsScript s
434 param uint32_t slot
435 param const void * data
436 }
Jason Samsfa517192009-08-13 12:59:04 -0700437
Tim Murray9c642392013-04-11 13:29:59 -0700438ScriptGetVarV {
439 param RsScript s
440 param uint32_t slot
441 param void * data
442 sync
443 }
444
Stephen Hines2980f072012-04-09 18:26:29 -0700445ScriptSetVarVE {
446 param RsScript s
447 param uint32_t slot
448 param const void * data
449 param RsElement e
Stephen Hinesac8d1462014-06-25 00:01:23 -0700450 param const uint32_t * dims
Stephen Hines2980f072012-04-09 18:26:29 -0700451 }
452
Jason Samsfa517192009-08-13 12:59:04 -0700453
Jason Sams326e0dd2009-05-22 14:03:28 -0700454ScriptCCreate {
Shih-wei Liao9503b662010-11-08 01:33:59 -0800455 param const char * resName
Shih-wei Liao15849d92010-12-10 01:03:59 -0800456 param const char * cacheDir
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800457 param const char * text
458 ret RsScript
459 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700460
Jason Sams8eaba4f2012-08-14 14:38:05 -0700461ScriptIntrinsicCreate {
462 param uint32_t id
463 param RsElement eid
464 ret RsScript
465 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700466
Jason Samsdbe66d62012-09-17 13:54:41 -0700467ScriptKernelIDCreate {
468 direct
469 param RsScript sid
470 param int slot
471 param int sig
472 ret RsScriptKernelID
473 }
474
475ScriptFieldIDCreate {
476 direct
477 param RsScript sid
478 param int slot
479 ret RsScriptFieldID
480 }
481
482ScriptGroupCreate {
483 direct
484 param RsScriptKernelID * kernels
485 param RsScriptKernelID * src
486 param RsScriptKernelID * dstK
487 param RsScriptFieldID * dstF
488 param const RsType * type
489 ret RsScriptGroup
490}
491
492ScriptGroupSetOutput {
493 param RsScriptGroup group
494 param RsScriptKernelID kernel
495 param RsAllocation alloc
496}
497
498ScriptGroupSetInput {
499 param RsScriptGroup group
500 param RsScriptKernelID kernel
501 param RsAllocation alloc
502}
503
504ScriptGroupExecute {
505 param RsScriptGroup group
506}
507
Yang Ni1ffd86b2015-01-07 09:16:40 -0800508ScriptGroup2Create{
509 direct
Yang Ni8b942222015-04-02 17:48:28 -0700510 param const char * name
Yang Nida0f0692015-01-12 13:03:40 -0800511 param const char * cacheDir
Yang Ni1ffd86b2015-01-07 09:16:40 -0800512 param RsClosure * closures
513 ret RsScriptGroup2
514}
515
Tim Murray4a92d122013-07-22 10:56:18 -0700516AllocationIoSend {
517 param RsAllocation alloc
518 }
Jason Samsdbe66d62012-09-17 13:54:41 -0700519
Tim Murray4a92d122013-07-22 10:56:18 -0700520AllocationIoReceive {
521 param RsAllocation alloc
522 }