Lingfeng Yang | d818d04 | 2020-10-28 08:40:07 -0700 | [diff] [blame] | 1 | # For documentation on the .attrib file format, see: |
| 2 | # android/android-emugl/host/tools/emugen/README |
| 3 | |
| 4 | GLOBAL |
| 5 | base_opcode 10000 |
| 6 | encoder_headers <stdint.h> <EGL/egl.h> "glUtils.h" |
| 7 | |
| 8 | rcGetEGLVersion |
| 9 | dir major out |
| 10 | len major sizeof(EGLint) |
| 11 | dir minor out |
| 12 | len minor sizeof(EGLint) |
| 13 | |
| 14 | rcQueryEGLString |
| 15 | dir buffer out |
| 16 | len buffer bufferSize |
| 17 | |
| 18 | rcGetGLString |
| 19 | dir buffer out |
| 20 | len buffer bufferSize |
| 21 | |
| 22 | rcGetNumConfigs |
| 23 | dir numAttribs out |
| 24 | len numAttribs sizeof(uint32_t) |
| 25 | |
| 26 | rcGetConfigs |
| 27 | dir buffer out |
| 28 | len buffer bufSize |
| 29 | |
| 30 | rcChooseConfig |
| 31 | dir attribs in |
| 32 | len attribs attribs_size |
| 33 | dir configs out |
| 34 | var_flag configs nullAllowed |
| 35 | len configs configs_size*sizeof(uint32_t) |
| 36 | |
| 37 | rcReadColorBuffer |
| 38 | dir pixels out |
| 39 | len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height) |
| 40 | |
| 41 | rcReadColorBufferYUV |
| 42 | dir pixels out |
| 43 | len pixels pixels_size |
| 44 | |
| 45 | rcUpdateColorBuffer |
| 46 | dir pixels in |
| 47 | len pixels (((glUtilsPixelBitSize(format, type) * width) >> 3) * height) |
| 48 | var_flag pixels isLarge |
| 49 | |
| 50 | rcUpdateColorBufferDMA |
| 51 | dir pixels in |
| 52 | len pixels pixels_size |
| 53 | var_flag pixels DMA |
| 54 | flag flushOnEncode |
| 55 | |
| 56 | rcCloseColorBuffer |
| 57 | flag flushOnEncode |
| 58 | |
| 59 | rcCreateSyncKHR |
| 60 | dir attribs in |
| 61 | len attribs num_attribs |
| 62 | dir glsync_out out |
| 63 | len glsync_out sizeof(uint64_t) |
| 64 | dir syncthread_out out |
| 65 | len syncthread_out sizeof(uint64_t) |
| 66 | |
| 67 | rcCompose |
| 68 | dir buffer in |
| 69 | len buffer bufferSize |
| 70 | flag flushOnEncode |
| 71 | |
| 72 | rcCreateDisplay |
| 73 | dir displayId out |
| 74 | len displayId sizeof(uint32_t) |
| 75 | |
| 76 | rcGetDisplayColorBuffer |
| 77 | dir colorBuffer out |
| 78 | len colorBuffer sizeof(uint32_t) |
| 79 | |
| 80 | rcGetColorBufferDisplay |
| 81 | dir displayId out |
| 82 | len displayId sizeof(uint32_t) |
| 83 | |
| 84 | rcGetDisplayPose |
| 85 | dir x out |
| 86 | len x sizeof(int32_t) |
| 87 | dir y out |
| 88 | len y sizeof(int32_t) |
| 89 | dir w out |
| 90 | len w sizeof(uint32_t) |
| 91 | dir h out |
| 92 | len h sizeof(uint32_t) |
Doug Horn | 3ef985d | 2021-01-08 11:04:43 -0800 | [diff] [blame] | 93 | |
| 94 | rcMakeCurrentAsync |
| 95 | flag flushOnEncode |
| 96 | |
| 97 | rcComposeAsync |
| 98 | dir buffer in |
| 99 | len buffer bufferSize |
| 100 | flag flushOnEncode |
| 101 | |
| 102 | rcDestroySyncKHRAsync |
| 103 | flag flushOnEncode |
Huan Song | ae05926 | 2021-01-22 14:48:56 -0800 | [diff] [blame] | 104 | |
| 105 | rcComposeWithoutPost |
| 106 | dir buffer in |
| 107 | len buffer bufferSize |
| 108 | flag flushOnEncode |
| 109 | |
| 110 | rcComposeAsyncWithoutPost |
| 111 | dir buffer in |
| 112 | len buffer bufferSize |
| 113 | flag flushOnEncode |
Lingfeng Yang | db408f8 | 2021-08-05 13:47:23 -0700 | [diff] [blame] | 114 | |
| 115 | rcReadColorBufferDMA |
| 116 | dir pixels out |
| 117 | len pixels pixels_size |
| 118 | var_flag pixels DMA |
| 119 | |
Jason Macnak | 4949145 | 2022-07-20 14:57:37 -0700 | [diff] [blame] | 120 | rcSetProcessMetadata |
| 121 | len key (strlen(key) + 1) |
| 122 | len valuePtr valueSize |
Jason Macnak | 5e450ec | 2022-09-13 15:04:25 -0700 | [diff] [blame] | 123 | |
| 124 | rcGetHostExtensionsString |
| 125 | dir buffer out |
| 126 | len buffer bufferSize |