blob: aab3d46e1d691549f64d9bc523a6bdabe2e4d767 [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
40 param bool mips
41 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
49 param RsAllocationMipmapControl mips
50 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
58 param RsAllocationMipmapControl mips
59 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
67 param RsAllocationMipmapControl mips
68 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
108 }
Jason Sams707aaf32009-08-18 14:14:24 -0700109
Jason Samsd01d9702009-12-23 14:35:29 -0800110ElementCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700111 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800112 param RsDataType mType
113 param RsDataKind mKind
114 param bool mNormalized
115 param uint32_t mVectorSize
116 ret RsElement
117 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700118
Jason Samsd01d9702009-12-23 14:35:29 -0800119ElementCreate2 {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700120 direct
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800121 param const RsElement * elements
122 param const char ** names
123 param const uint32_t * arraySize
124 ret RsElement
125 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700126
Jason Sams837e3882010-12-10 16:03:15 -0800127AllocationCopyToBitmap {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800128 param RsAllocation alloc
129 param void * data
130 }
Alex Sakhartchouk39f2ef62010-10-11 12:35:15 -0700131
Jason Sams326e0dd2009-05-22 14:03:28 -0700132
Jason Sams4b45b892010-12-29 14:31:29 -0800133Allocation1DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800134 param RsAllocation va
135 param uint32_t xoff
136 param uint32_t lod
137 param uint32_t count
138 param const void *data
139 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700140
Jason Sams4b45b892010-12-29 14:31:29 -0800141Allocation1DElementData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800142 param RsAllocation va
143 param uint32_t x
144 param uint32_t lod
145 param const void *data
146 param size_t comp_offset
147 }
Jason Sams5f0c84c2010-08-31 13:50:42 -0700148
Jason Sams4b45b892010-12-29 14:31:29 -0800149Allocation2DData {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800150 param RsAllocation va
151 param uint32_t xoff
152 param uint32_t yoff
153 param uint32_t lod
154 param RsAllocationCubemapFace face
155 param uint32_t w
156 param uint32_t h
157 param const void *data
Tim Murray358747a2012-11-26 13:52:04 -0800158 param size_t stride
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800159 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700160
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700161Allocation3DData {
162 param RsAllocation va
163 param uint32_t xoff
164 param uint32_t yoff
165 param uint32_t zoff
166 param uint32_t lod
167 param uint32_t w
168 param uint32_t h
169 param uint32_t d
170 param const void *data
171 param size_t stride
172 }
173
Jason Samsa2371512011-01-12 13:28:37 -0800174AllocationGenerateMipmaps {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800175 param RsAllocation va
Jason Samsa2371512011-01-12 13:28:37 -0800176}
177
Jason Samse579df42009-08-10 14:55:26 -0700178AllocationRead {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800179 param RsAllocation va
180 param void * data
181 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700182
Tim Murray509ea5c2012-11-13 11:56:40 -0800183Allocation1DRead {
184 param RsAllocation va
185 param uint32_t xoff
186 param uint32_t lod
187 param uint32_t count
188 param void *data
189 }
190
Tim Murray7b3e3092012-11-16 13:32:24 -0800191Allocation2DRead {
192 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 void *data
Tim Murray358747a2012-11-26 13:52:04 -0800200 param size_t stride
Tim Murray7b3e3092012-11-16 13:32:24 -0800201}
Tim Murray509ea5c2012-11-13 11:56:40 -0800202
Tim Murray8c1da3f2013-07-17 12:22:19 -0700203
Jason Sams366c9c82010-12-08 16:14:36 -0800204AllocationSyncAll {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800205 param RsAllocation va
206 param RsAllocationUsageType src
Jason Sams366c9c82010-12-08 16:14:36 -0800207}
208
Jason Sams96abf812010-10-05 13:32:49 -0700209AllocationResize1D {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800210 param RsAllocation va
211 param uint32_t dimX
212 }
Jason Sams96abf812010-10-05 13:32:49 -0700213
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700214AllocationCopy2DRange {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800215 param RsAllocation dest
216 param uint32_t destXoff
217 param uint32_t destYoff
218 param uint32_t destMip
219 param uint32_t destFace
220 param uint32_t width
221 param uint32_t height
222 param RsAllocation src
223 param uint32_t srcXoff
224 param uint32_t srcYoff
225 param uint32_t srcMip
226 param uint32_t srcFace
227 }
Alex Sakhartchouk74a82792011-06-14 11:13:19 -0700228
Jason Sams3bbc0fd2013-04-09 14:16:13 -0700229AllocationCopy3DRange {
230 param RsAllocation dest
231 param uint32_t destXoff
232 param uint32_t destYoff
233 param uint32_t destZoff
234 param uint32_t destMip
235 param uint32_t width
236 param uint32_t height
237 param uint32_t depth
238 param RsAllocation src
239 param uint32_t srcXoff
240 param uint32_t srcYoff
241 param uint32_t srcZoff
242 param uint32_t srcMip
243 }
244
245
Jason Sams326e0dd2009-05-22 14:03:28 -0700246SamplerCreate {
Alex Sakhartchoukc700e642011-08-16 13:09:46 -0700247 direct
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700248 param RsSamplerValue magFilter
249 param RsSamplerValue minFilter
250 param RsSamplerValue wrapS
251 param RsSamplerValue wrapT
252 param RsSamplerValue wrapR
253 param float mAniso
254 ret RsSampler
255}
Jason Sams326e0dd2009-05-22 14:03:28 -0700256
257ScriptBindAllocation {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800258 param RsScript vtm
259 param RsAllocation va
260 param uint32_t slot
261 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700262
Jason Samsd34b7252009-08-04 16:58:20 -0700263ScriptSetTimeZone {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800264 param RsScript s
265 param const char * timeZone
266 }
Romain Guy98e10fd2009-07-30 18:45:01 -0700267
Jason Sams8c6bc692009-09-16 15:04:38 -0700268ScriptInvoke {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800269 param RsScript s
270 param uint32_t slot
271 }
Jason Sams8c6bc692009-09-16 15:04:38 -0700272
Jason Samsbe36bf32010-05-11 14:03:58 -0700273ScriptInvokeV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800274 param RsScript s
275 param uint32_t slot
276 param const void * data
277 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700278
Alex Sakhartchoukc2c02a82011-05-04 17:45:36 -0700279ScriptForEach {
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700280 param RsScript s
281 param uint32_t slot
282 param RsAllocation ain
283 param RsAllocation aout
284 param const void * usr
Tim Murrayd4ecb172013-02-07 12:17:03 -0800285 param const RsScriptCall * sc
Jason Sams5fb1aeb2011-04-27 15:12:49 -0700286}
287
Jason Samsbe36bf32010-05-11 14:03:58 -0700288ScriptSetVarI {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800289 param RsScript s
290 param uint32_t slot
291 param int value
292 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700293
Jason Samsa5eb6e12010-11-16 17:37:02 -0800294ScriptSetVarObj {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800295 param RsScript s
296 param uint32_t slot
297 param RsObjectBase value
298 }
Jason Samsa5eb6e12010-11-16 17:37:02 -0800299
Stephen Hines0977c942010-10-11 10:54:21 -0700300ScriptSetVarJ {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800301 param RsScript s
302 param uint32_t slot
303 param int64_t value
304 }
Stephen Hines0977c942010-10-11 10:54:21 -0700305
Jason Samsbe36bf32010-05-11 14:03:58 -0700306ScriptSetVarF {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800307 param RsScript s
308 param uint32_t slot
309 param float value
310 }
Jason Samsbe36bf32010-05-11 14:03:58 -0700311
Stephen Hines6d0a0742010-09-20 17:20:30 -0700312ScriptSetVarD {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800313 param RsScript s
314 param uint32_t slot
315 param double value
316 }
Stephen Hines6d0a0742010-09-20 17:20:30 -0700317
Jason Samsbe36bf32010-05-11 14:03:58 -0700318ScriptSetVarV {
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800319 param RsScript s
320 param uint32_t slot
321 param const void * data
322 }
Jason Samsfa517192009-08-13 12:59:04 -0700323
Tim Murray9c642392013-04-11 13:29:59 -0700324ScriptGetVarV {
325 param RsScript s
326 param uint32_t slot
327 param void * data
328 sync
329 }
330
Stephen Hines2980f072012-04-09 18:26:29 -0700331ScriptSetVarVE {
332 param RsScript s
333 param uint32_t slot
334 param const void * data
335 param RsElement e
336 param const size_t * dims
337 }
338
Jason Samsfa517192009-08-13 12:59:04 -0700339
Jason Sams326e0dd2009-05-22 14:03:28 -0700340ScriptCCreate {
Shih-wei Liao9503b662010-11-08 01:33:59 -0800341 param const char * resName
Shih-wei Liao15849d92010-12-10 01:03:59 -0800342 param const char * cacheDir
Alex Sakhartchouk748eb072012-02-15 16:21:46 -0800343 param const char * text
344 ret RsScript
345 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700346
Jason Sams8eaba4f2012-08-14 14:38:05 -0700347ScriptIntrinsicCreate {
348 param uint32_t id
349 param RsElement eid
350 ret RsScript
351 }
Jason Sams326e0dd2009-05-22 14:03:28 -0700352
Jason Samsdbe66d62012-09-17 13:54:41 -0700353ScriptKernelIDCreate {
354 direct
355 param RsScript sid
356 param int slot
357 param int sig
358 ret RsScriptKernelID
359 }
360
361ScriptFieldIDCreate {
362 direct
363 param RsScript sid
364 param int slot
365 ret RsScriptFieldID
366 }
367
368ScriptGroupCreate {
369 direct
370 param RsScriptKernelID * kernels
371 param RsScriptKernelID * src
372 param RsScriptKernelID * dstK
373 param RsScriptFieldID * dstF
374 param const RsType * type
375 ret RsScriptGroup
376}
377
378ScriptGroupSetOutput {
379 param RsScriptGroup group
380 param RsScriptKernelID kernel
381 param RsAllocation alloc
382}
383
384ScriptGroupSetInput {
385 param RsScriptGroup group
386 param RsScriptKernelID kernel
387 param RsAllocation alloc
388}
389
390ScriptGroupExecute {
391 param RsScriptGroup group
392}
393
Tim Murray4a92d122013-07-22 10:56:18 -0700394AllocationIoSend {
395 param RsAllocation alloc
396 }
Jason Samsdbe66d62012-09-17 13:54:41 -0700397
Tim Murray4a92d122013-07-22 10:56:18 -0700398AllocationIoReceive {
399 param RsAllocation alloc
400 }
Jason Samsdbe66d62012-09-17 13:54:41 -0700401