blob: 18ece8cdcc5ee72f7070c73bf2bd212213bdaa82 [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 Samsc975cf42011-04-28 18:26:48 -070046AllocationCreateTyped {
Jason Sams186e5912011-04-26 14:50:00 -070047 direct
48 param RsType vtype
Stephen Hines8f615d62013-12-20 12:23:32 -080049 param RsAllocationMipmapControl mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070050 param uint32_t usages
Tim Murray099bc262013-03-20 16:54:03 -070051 param uintptr_t ptr
Jason Sams186e5912011-04-26 14:50:00 -070052 ret RsAllocation
53}
54
Jason Samsc975cf42011-04-28 18:26:48 -070055AllocationCreateFromBitmap {
Jason Sams186e5912011-04-26 14:50:00 -070056 direct
57 param RsType vtype
Stephen Hines8f615d62013-12-20 12:23:32 -080058 param RsAllocationMipmapControl mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070059 param const void *data
60 param uint32_t usages
61 ret RsAllocation
62}
63
Jason Samsc975cf42011-04-28 18:26:48 -070064AllocationCubeCreateFromBitmap {
Jason Sams186e5912011-04-26 14:50:00 -070065 direct
66 param RsType vtype
Stephen Hines8f615d62013-12-20 12:23:32 -080067 param RsAllocationMipmapControl mipmaps
Jason Sams186e5912011-04-26 14:50:00 -070068 param const void *data
69 param uint32_t usages
70 ret RsAllocation
71}
72
Jason Sams733396b2013-02-22 12:46:18 -080073AllocationGetSurface {
Jason Sams41e373d2012-01-13 14:01:20 -080074 param RsAllocation alloc
Jason Sams3522f402012-03-23 11:47:26 -070075 sync
Jason Sams733396b2013-02-22 12:46:18 -080076 ret RsNativeWindow
Jason Sams3522f402012-03-23 11:47:26 -070077}
78
Jason Sams7ac2a4d2012-02-15 12:04:24 -080079AllocationSetSurface {
80 param RsAllocation alloc
81 param RsNativeWindow sur
82 sync
83 }
84
Jason Sams8c880902010-06-15 12:15:57 -070085ContextFinish {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -080086 sync
87 }
Jason Sams326e0dd2009-05-22 14:03:28 -070088
Jason Samsc21cf402009-11-17 17:26:46 -080089ContextDump {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -080090 param int32_t bits
Jason Samsc21cf402009-11-17 17:26:46 -080091}
92
Jason Sams613cad12009-11-12 15:10:25 -080093ContextSetPriority {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -080094 param int32_t priority
95 }
Jason Sams613cad12009-11-12 15:10:25 -080096
Jason Sams741aac92010-12-24 14:38:39 -080097ContextDestroyWorker {
Tim Murray8c1da3f2013-07-17 12:22:19 -070098 sync
Jason Sams1dcefab2010-12-09 12:19:46 -080099}
100
Jason Samsa0a1b6f2009-06-10 15:04:38 -0700101AssignName {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800102 param RsObjectBase obj
103 param const char *name
104 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700105
Jason Sams707aaf32009-08-18 14:14:24 -0700106ObjDestroy {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800107 param RsAsyncVoidPtr objPtr
Tim Murray397b0b12014-01-07 15:35:08 -0800108 handcodeApi
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800109 }
Jason Sams707aaf32009-08-18 14:14:24 -0700110
Jason Samsd01d9702009-12-23 14:35:29 -0800111ElementCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700112 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800113 param RsDataType mType
114 param RsDataKind mKind
115 param bool mNormalized
116 param uint32_t mVectorSize
117 ret RsElement
118 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700119
Jason Samsd01d9702009-12-23 14:35:29 -0800120ElementCreate2 {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700121 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800122 param const RsElement * elements
123 param const char ** names
124 param const uint32_t * arraySize
125 ret RsElement
126 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700127
Jason Sams837e3882010-12-10 16:03:15 -0800128AllocationCopyToBitmap {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800129 param RsAllocation alloc
130 param void * data
131 }
Alex Sakhartchouk39f2ef62010-10-11 12:35:15 -0700132
Jason Samsb8a94e22014-02-24 17:52:32 -0800133AllocationGetPointer {
134 param RsAllocation va
135 param uint32_t lod
136 param RsAllocationCubemapFace face
137 param uint32_t z
138 param uint32_t array
139 param size_t *stride
140 ret void *s
141 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700142
Jason Sams4b45b892010-12-29 14:31:29 -0800143Allocation1DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800144 param RsAllocation va
145 param uint32_t xoff
146 param uint32_t lod
147 param uint32_t count
148 param const void *data
149 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700150
Jason Sams4b45b892010-12-29 14:31:29 -0800151Allocation1DElementData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800152 param RsAllocation va
153 param uint32_t x
154 param uint32_t lod
155 param const void *data
156 param size_t comp_offset
157 }
Jason Sams5f0c84c2010-08-31 13:50:42 -0700158
Jason Sams4b45b892010-12-29 14:31:29 -0800159Allocation2DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800160 param RsAllocation va
161 param uint32_t xoff
162 param uint32_t yoff
163 param uint32_t lod
164 param RsAllocationCubemapFace face
165 param uint32_t w
166 param uint32_t h
167 param const void *data
Tim Murray358747a2012-11-26 13:52:04 -0800168 param size_t stride
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800169 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700170
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700171Allocation3DData {
172 param RsAllocation va
173 param uint32_t xoff
174 param uint32_t yoff
175 param uint32_t zoff
176 param uint32_t lod
177 param uint32_t w
178 param uint32_t h
179 param uint32_t d
180 param const void *data
181 param size_t stride
182 }
183
Jason Samsa2371512011-01-12 13:28:37 -0800184AllocationGenerateMipmaps {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800185 param RsAllocation va
Jason Samsa2371512011-01-12 13:28:37 -0800186}
187
Jason Samse579df42009-08-10 14:55:26 -0700188AllocationRead {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800189 param RsAllocation va
190 param void * data
191 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700192
Tim Murray509ea5c2012-11-13 11:56:40 -0800193Allocation1DRead {
194 param RsAllocation va
195 param uint32_t xoff
196 param uint32_t lod
197 param uint32_t count
198 param void *data
199 }
200
Tim Murray7b3e3092012-11-16 13:32:24 -0800201Allocation2DRead {
202 param RsAllocation va
203 param uint32_t xoff
204 param uint32_t yoff
205 param uint32_t lod
206 param RsAllocationCubemapFace face
207 param uint32_t w
208 param uint32_t h
209 param void *data
Tim Murray358747a2012-11-26 13:52:04 -0800210 param size_t stride
Tim Murray7b3e3092012-11-16 13:32:24 -0800211}
Tim Murray509ea5c2012-11-13 11:56:40 -0800212
Tim Murray8c1da3f2013-07-17 12:22:19 -0700213
Jason Sams366c9c82010-12-08 16:14:36 -0800214AllocationSyncAll {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800215 param RsAllocation va
216 param RsAllocationUsageType src
Jason Sams366c9c82010-12-08 16:14:36 -0800217}
218
Jason Sams96abf812010-10-05 13:32:49 -0700219AllocationResize1D {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800220 param RsAllocation va
221 param uint32_t dimX
222 }
Jason Sams96abf812010-10-05 13:32:49 -0700223
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700224AllocationCopy2DRange {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800225 param RsAllocation dest
226 param uint32_t destXoff
227 param uint32_t destYoff
228 param uint32_t destMip
229 param uint32_t destFace
230 param uint32_t width
231 param uint32_t height
232 param RsAllocation src
233 param uint32_t srcXoff
234 param uint32_t srcYoff
235 param uint32_t srcMip
236 param uint32_t srcFace
237 }
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700238
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700239AllocationCopy3DRange {
240 param RsAllocation dest
241 param uint32_t destXoff
242 param uint32_t destYoff
243 param uint32_t destZoff
244 param uint32_t destMip
245 param uint32_t width
246 param uint32_t height
247 param uint32_t depth
248 param RsAllocation src
249 param uint32_t srcXoff
250 param uint32_t srcYoff
251 param uint32_t srcZoff
252 param uint32_t srcMip
253 }
254
255
Jason Sams326e0dd2009-05-22 14:03:28 -0700256SamplerCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700257 direct
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700258 param RsSamplerValue magFilter
259 param RsSamplerValue minFilter
260 param RsSamplerValue wrapS
261 param RsSamplerValue wrapT
262 param RsSamplerValue wrapR
263 param float mAniso
264 ret RsSampler
265}
Jason Sams326e0dd2009-05-22 14:03:28 -0700266
267ScriptBindAllocation {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800268 param RsScript vtm
269 param RsAllocation va
270 param uint32_t slot
271 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700272
Jason Samsd34b7252009-08-04 16:58:20 -0700273ScriptSetTimeZone {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800274 param RsScript s
275 param const char * timeZone
276 }
Romain Guy98e10fd2009-07-30 18:45:01 -0700277
Jason Sams8c6bc692009-09-16 15:04:38 -0700278ScriptInvoke {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800279 param RsScript s
280 param uint32_t slot
281 }
Jason Sams8c6bc692009-09-16 15:04:38 -0700282
Jason Samsbe36bf32010-05-11 14:03:58 -0700283ScriptInvokeV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800284 param RsScript s
285 param uint32_t slot
286 param const void * data
287 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700288
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700289ScriptForEach {
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700290 param RsScript s
291 param uint32_t slot
292 param RsAllocation ain
293 param RsAllocation aout
294 param const void * usr
Tim Murrayd4ecb172013-02-07 12:17:03 -0800295 param const RsScriptCall * sc
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700296}
297
Chris Wailes4b3c34e2014-06-11 12:00:29 -0700298ScriptForEachMulti {
299 param RsScript s
300 param uint32_t slot
301 param RsAllocation * ains
302 param RsAllocation aout
303 param const void * usr
304 param const RsScriptCall * sc
305}
306
Jason Samsbe36bf32010-05-11 14:03:58 -0700307ScriptSetVarI {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800308 param RsScript s
309 param uint32_t slot
310 param int value
311 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700312
Jason Samsa5eb6e12010-11-16 17:37:02 -0800313ScriptSetVarObj {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800314 param RsScript s
315 param uint32_t slot
316 param RsObjectBase value
317 }
Jason Samsa5eb6e12010-11-16 17:37:02 -0800318
Stephen Hines0977c942010-10-11 10:54:21 -0700319ScriptSetVarJ {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800320 param RsScript s
321 param uint32_t slot
322 param int64_t value
323 }
Stephen Hines0977c942010-10-11 10:54:21 -0700324
Jason Samsbe36bf32010-05-11 14:03:58 -0700325ScriptSetVarF {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800326 param RsScript s
327 param uint32_t slot
328 param float value
329 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700330
Stephen Hines6d0a0742010-09-20 17:20:30 -0700331ScriptSetVarD {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800332 param RsScript s
333 param uint32_t slot
334 param double value
335 }
Stephen Hines6d0a0742010-09-20 17:20:30 -0700336
Jason Samsbe36bf32010-05-11 14:03:58 -0700337ScriptSetVarV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800338 param RsScript s
339 param uint32_t slot
340 param const void * data
341 }
Jason Samsfa517192009-08-13 12:59:04 -0700342
Tim Murray9c642392013-04-11 13:29:59 -0700343ScriptGetVarV {
344 param RsScript s
345 param uint32_t slot
346 param void * data
347 sync
348 }
349
Stephen Hines2980f072012-04-09 18:26:29 -0700350ScriptSetVarVE {
351 param RsScript s
352 param uint32_t slot
353 param const void * data
354 param RsElement e
Stephen Hinesac8d1462014-06-25 00:01:23 -0700355 param const uint32_t * dims
Stephen Hines2980f072012-04-09 18:26:29 -0700356 }
357
Jason Samsfa517192009-08-13 12:59:04 -0700358
Jason Sams326e0dd2009-05-22 14:03:28 -0700359ScriptCCreate {
Shih-wei Liao9503b662010-11-08 01:33:59 -0800360 param const char * resName
Shih-wei Liao15849d92010-12-10 01:03:59 -0800361 param const char * cacheDir
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800362 param const char * text
363 ret RsScript
364 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700365
Jason Sams8eaba4f2012-08-14 14:38:05 -0700366ScriptIntrinsicCreate {
367 param uint32_t id
368 param RsElement eid
369 ret RsScript
370 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700371
Jason Samsdbe66d62012-09-17 13:54:41 -0700372ScriptKernelIDCreate {
373 direct
374 param RsScript sid
375 param int slot
376 param int sig
377 ret RsScriptKernelID
378 }
379
380ScriptFieldIDCreate {
381 direct
382 param RsScript sid
383 param int slot
384 ret RsScriptFieldID
385 }
386
387ScriptGroupCreate {
388 direct
389 param RsScriptKernelID * kernels
390 param RsScriptKernelID * src
391 param RsScriptKernelID * dstK
392 param RsScriptFieldID * dstF
393 param const RsType * type
394 ret RsScriptGroup
395}
396
397ScriptGroupSetOutput {
398 param RsScriptGroup group
399 param RsScriptKernelID kernel
400 param RsAllocation alloc
401}
402
403ScriptGroupSetInput {
404 param RsScriptGroup group
405 param RsScriptKernelID kernel
406 param RsAllocation alloc
407}
408
409ScriptGroupExecute {
410 param RsScriptGroup group
411}
412
Tim Murray4a92d122013-07-22 10:56:18 -0700413AllocationIoSend {
414 param RsAllocation alloc
415 }
Jason Samsdbe66d62012-09-17 13:54:41 -0700416
Tim Murray4a92d122013-07-22 10:56:18 -0700417AllocationIoReceive {
418 param RsAllocation alloc
419 }