• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright © 2018 NVIDIA Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20  * OTHER DEALINGS IN THE SOFTWARE.
21  */
22 
23 #ifndef VIC30_H
24 #define VIC30_H
25 
26 #include <stdint.h>
27 
28 #define NVA0B6_VIDEO_COMPOSITOR_SET_APPLICATION_ID 0x200
29 #define NVA0B6_VIDEO_COMPOSITOR_EXECUTE 0x300
30 #define NVA0B6_VIDEO_COMPOSITOR_EXECUTE_AWAKEN (1 << 8)
31 #define NVA0B6_VIDEO_COMPOSITOR_SET_SURFACE0_SLOT0_LUMA_OFFSET 0x400
32 #define NVA0B6_VIDEO_COMPOSITOR_SET_SURFACE0_SLOT0_CHROMA_U_OFFSET 0x404
33 #define NVA0B6_VIDEO_COMPOSITOR_SET_SURFACE0_SLOT0_CHROMA_V_OFFSET 0x408
34 #define NVA0B6_VIDEO_COMPOSITOR_SET_CONTROL_PARAMS 0x700
35 #define NVA0B6_VIDEO_COMPOSITOR_SET_CONFIG_STRUCT_OFFSET 0x720
36 #define NVA0B6_VIDEO_COMPOSITOR_SET_PALETTE_OFFSET 0x724
37 #define NVA0B6_VIDEO_COMPOSITOR_SET_HIST_OFFSET 0x728
38 #define NVA0B6_VIDEO_COMPOSITOR_SET_OUTPUT_SURFACE_LUMA_OFFSET 0x730
39 #define NVA0B6_VIDEO_COMPOSITOR_SET_OUTPUT_SURFACE_CHROMA_U_OFFSET 0x734
40 #define NVA0B6_VIDEO_COMPOSITOR_SET_OUTPUT_SURFACE_CHROMA_V_OFFSET 0x738
41 
42 #define VIC_PIXEL_FORMAT_L8 1
43 #define VIC_PIXEL_FORMAT_R8 4
44 #define VIC_PIXEL_FORMAT_A8R8G8B8 32
45 #define VIC_PIXEL_FORMAT_R8G8B8A8 34
46 #define VIC_PIXEL_FORMAT_Y8_U8V8_N420 67
47 #define VIC_PIXEL_FORMAT_Y8_V8U8_N420 68
48 
49 #define VIC_BLK_KIND_PITCH 0
50 #define VIC_BLK_KIND_GENERIC_16Bx2 1
51 
52 typedef struct {
53     uint64_t DeNoise0 : 1; /* 0 */
54     uint64_t CadenceDetect0 : 1; /* 1 */
55     uint64_t MotionMap0 : 1; /* 2 */
56     uint64_t MedianFilter0 : 1; /* 3 */
57     uint64_t DeNoise1 : 1; /* 4 */
58     uint64_t CadenceDetect1 : 1; /* 5 */
59     uint64_t MotionMap1 : 1; /* 6 */
60     uint64_t MedianFilter1 : 1; /* 7 */
61     uint64_t DeNoise2 : 1; /* 8 */
62     uint64_t CadenceDetect2 : 1; /* 9 */
63     uint64_t MotionMap2 : 1; /* 10 */
64     uint64_t MedianFilter2 : 1; /* 11 */
65     uint64_t DeNoise3 : 1; /* 12 */
66     uint64_t CadenceDetect3 : 1; /* 13 */
67     uint64_t MotionMap3 : 1; /* 14 */
68     uint64_t MedianFilter3 : 1; /* 15 */
69     uint64_t DeNoise4 : 1; /* 16 */
70     uint64_t CadenceDetect4 : 1; /* 17 */
71     uint64_t MotionMap4 : 1; /* 18 */
72     uint64_t MedianFilter4 : 1; /* 19 */
73     uint64_t IsEven0 : 1; /* 20 */
74     uint64_t IsEven1 : 1; /* 21 */
75     uint64_t IsEven2 : 1; /* 22 */
76     uint64_t IsEven3 : 1; /* 23 */
77     uint64_t IsEven4 : 1; /* 24 */
78     uint64_t MMapCombine0 : 1; /* 25 */
79     uint64_t MMapCombine1 : 1; /* 26 */
80     uint64_t MMapCombine2 : 1; /* 27 */
81     uint64_t MMapCombine3 : 1; /* 28 */
82     uint64_t MMapCombine4 : 1; /* 29 */
83     uint64_t reserved0 : 2; /* 31..30 */
84     uint64_t PixelFormat0 : 7; /* 38..32 */
85     uint64_t reserved1 : 1; /* 39 */
86     uint64_t PixelFormat1 : 7; /* 46..40 */
87     uint64_t reserved2 : 1; /* 47 */
88     uint64_t PixelFormat2 : 7; /* 54..48 */
89     uint64_t reserved3 : 1; /* 55 */
90     uint64_t PixelFormat3 : 7; /* 62..56 */
91     uint64_t reserved4 : 1; /* 63 */
92     uint64_t PixelFormat4 : 7; /* 70..64 */
93     uint64_t reserved5 : 1; /* 71 */
94     uint64_t reserved6 : 24; /* 95..72 */
95     uint64_t PPMotion0 : 1; /* 96 */
96     uint64_t PPMotion1 : 1; /* 97 */
97     uint64_t PPMotion2 : 1; /* 98 */
98     uint64_t PPMotion3 : 1; /* 99 */
99     uint64_t PPMotion4 : 1; /* 100 */
100     uint64_t reserved7 : 3; /* 103..101 */
101     uint64_t ChromaEven0 : 1; /* 104 */
102     uint64_t ChromaEven1 : 1; /* 105 */
103     uint64_t ChromaEven2 : 1; /* 106 */
104     uint64_t ChromaEven3 : 1; /* 107 */
105     uint64_t ChromaEven4 : 1; /* 108 */
106     uint64_t reserved8 : 3; /* 111..109 */
107     uint64_t AdvancedDenoise0 : 1; /* 112 */
108     uint64_t AdvancedDenoise1 : 1; /* 113 */
109     uint64_t AdvancedDenoise2 : 1; /* 114 */
110     uint64_t AdvancedDenoise3 : 1; /* 115 */
111     uint64_t AdvancedDenoise4 : 1; /* 116 */
112     uint64_t reserved9 : 3; /* 119..117 */
113     uint64_t reserved10 : 8; /* 127..120 */
114 } SurfaceCache0Struct;
115 
116 typedef struct {
117     uint64_t ClearRectMask0 : 8; /* 7..0 */
118     uint64_t ClearRectMask1 : 8; /* 15..8 */
119     uint64_t ClearRectMask2 : 8; /* 23..16 */
120     uint64_t ClearRectMask3 : 8; /* 31..24 */
121     uint64_t ClearRectMask4 : 8; /* 39..32 */
122     uint64_t reserved0 : 22; /* 61..40 */
123     uint64_t OutputFlipX : 1; /* 62 */
124     uint64_t OutputFlipY : 1; /* 63 */
125     uint64_t TargetRectLeft : 14; /* 77..64 */
126     uint64_t reserved1 : 2; /* 79..78 */
127     uint64_t TargetRectRight : 14; /* 93..80 */
128     uint64_t reserved2 : 2; /* 95..94 */
129     uint64_t TargetRectTop : 14; /* 109..96 */
130     uint64_t reserved3 : 2; /* 111..110 */
131     uint64_t TargetRectBottom : 14; /* 125..112 */
132     uint64_t reserved4 : 2; /* 127..126 */
133 } SurfaceList0Struct;
134 
135 typedef struct {
136     uint64_t ClearRect0Left : 14; /* 13..0 */
137     uint64_t reserved0 : 2; /* 15..14 */
138     uint64_t ClearRect0Right : 14; /* 29..16 */
139     uint64_t reserved1 : 2; /* 31..30 */
140     uint64_t ClearRect0Top : 14; /* 45..32 */
141     uint64_t reserved2 : 2; /* 47..46 */
142     uint64_t ClearRect0Bottom : 14; /* 61..48 */
143     uint64_t reserved3 : 2; /* 63..62 */
144     uint64_t ClearRect1Left : 14; /* 77..64 */
145     uint64_t reserved4 : 2; /* 79..78 */
146     uint64_t ClearRect1Right : 14; /* 93..80 */
147     uint64_t reserved5 : 2; /* 95..94 */
148     uint64_t ClearRect1Top : 14; /* 109..96 */
149     uint64_t reserved6 : 2; /* 111..110 */
150     uint64_t ClearRect1Bottom : 14; /* 125..112 */
151     uint64_t reserved7 : 2; /* 127..126 */
152 } SurfaceListClearRectStruct;
153 
154 typedef struct {
155     uint64_t Enable : 1; /* 0 */
156     uint64_t FrameFormat : 4; /* 4..1 */
157     uint64_t PixelFormat : 7; /* 11..5 */
158     uint64_t reserved0 : 2; /* 13..12 */
159     uint64_t ChromaLocHoriz : 2; /* 15..14 */
160     uint64_t ChromaLocVert : 2; /* 17..16 */
161     uint64_t Panoramic : 12; /* 29..18 */
162     uint64_t reserved1 : 4; /* 33..30 */
163     uint64_t SurfaceWidth : 14; /* 47..34 */
164     uint64_t reserved2 : 1; /* 48 */
165     uint64_t SurfaceHeight : 14; /* 62..49 */
166     uint64_t reserved3 : 1; /* 63 */
167     uint64_t LumaWidth : 14; /* 77..64 */
168     uint64_t reserved4 : 1; /* 78 */
169     uint64_t LumaHeight : 14; /* 92..79 */
170     uint64_t reserved5 : 1; /* 93 */
171     uint64_t ChromaWidth : 14; /* 107..94 */
172     uint64_t reserved6 : 1; /* 108 */
173     uint64_t ChromaHeight : 14; /* 122..109 */
174     uint64_t reserved7 : 1; /* 123 */
175     uint64_t CacheWidth : 3; /* 126..124 */
176     uint64_t reserved8 : 1; /* 127 */
177     /* 128 */
178     uint64_t FilterLengthY : 2; /* 1..0 */
179     uint64_t FilterLengthX : 2; /* 3..2 */
180     uint64_t DetailFltClamp : 6; /* 9..4 */
181     uint64_t reserved9 : 2; /* 11..10 */
182     uint64_t LightLevel : 4; /* 15..12 */
183     uint64_t reserved10 : 4; /* 19..16 */
184     uint64_t reserved11 : 8; /* 27..20 */
185     uint64_t reserved12 : 32; /* 59..28 */
186     uint64_t BlkKind : 4; /* 63..60 */
187     uint64_t DestRectLeft : 14; /* 77..64 */
188     uint64_t reserved13 : 1; /* 78 */
189     uint64_t DestRectRight : 14; /* 92..79 */
190     uint64_t reserved14 : 1; /* 93 */
191     uint64_t DestRectTop : 14; /* 107..94 */
192     uint64_t reserved15 : 1; /* 108 */
193     uint64_t DestRectBottom : 14; /* 122..109 */
194     uint64_t reserved16 : 1; /* 123 */
195     uint64_t BlkHeight : 4; /* 127..124 */
196     /* 256 */
197     uint64_t SourceRectLeft : 30; /* 29..0 */
198     uint64_t reserved17 : 2; /* 31..30 */
199     uint64_t SourceRectRight : 30; /* 61..32 */
200     uint64_t reserved18 : 2; /* 63..62 */
201     uint64_t SourceRectTop : 30; /* 93..64 */
202     uint64_t reserved19 : 2; /* 95..94 */
203     uint64_t SourceRectBottom : 30; /* 125..96 */
204     uint64_t reserved20 : 2; /* 127..126 */
205 } SurfaceListSurfaceStruct;
206 
207 typedef struct {
208     uint64_t l0 : 20; /* 19..0 */
209     uint64_t l1 : 20; /* 39..20 */
210     uint64_t l2 : 20; /* 59..40 */
211     uint64_t r_shift : 4; /* 63..60 */
212     uint64_t l3 : 20; /* 83..64 */
213     uint64_t PlanarAlpha : 10; /* 93..84 */
214     uint64_t ConstantAlpha : 1; /* 94 */
215     uint64_t ClipEnabled : 1; /* 95 */
216     uint64_t LumaKeyLower : 10; /* 105..96 */
217     uint64_t reserved6 : 3; /* 108..106 */
218     uint64_t StereoInterleave : 3; /* 111..109 */
219     uint64_t LumaKeyUpper : 10; /* 121..112 */
220     uint64_t reserved7 : 2; /* 123..122 */
221     uint64_t reserved8 : 1; /* 124 */
222     uint64_t LumaKeyEnabled : 1; /* 125 */
223     uint64_t reserved9 : 2; /* 127..126 */
224 } ColorConversionLumaAlphaStruct;
225 
226 typedef struct {
227     uint64_t c00 : 20; /* 19..0 */
228     uint64_t c10 : 20; /* 39..20 */
229     uint64_t c20 : 20; /* 59..40 */
230     uint64_t r_shift : 4; /* 63..60 */
231     uint64_t c01 : 20; /* 83..64 */
232     uint64_t c11 : 20; /* 103..84 */
233     uint64_t c21 : 20; /* 123..104 */
234     uint64_t reserved0 : 4; /* 127..124 */
235     /* 128 */
236     uint64_t c02 : 20; /* 19..0 */
237     uint64_t c12 : 20; /* 39..20 */
238     uint64_t c22 : 20; /* 59..40 */
239     uint64_t reserved1 : 4; /* 63..60 */
240     uint64_t c03 : 20; /* 83..64 */
241     uint64_t c13 : 20; /* 103..84 */
242     uint64_t c23 : 20; /* 123..104 */
243     uint64_t reserved2 : 4; /* 127..124 */
244 } ColorConversionMatrixStruct;
245 
246 typedef struct {
247     uint64_t low : 10; /* 9..0 */
248     uint64_t reserved0 : 6; /* 15..10 */
249     uint64_t high : 10; /* 25..16 */
250     uint64_t reserved1 : 6; /* 31..26 */
251     uint64_t reserved2 : 32; /* 63..32 */
252     uint64_t reserved3 : 32; /* 95..64 */
253     uint64_t reserved4 : 32; /* 127..96 */
254 } ColorConversionClampStruct;
255 
256 typedef struct {
257     uint64_t PixelFormat : 7; /* 6..0 */
258     uint64_t reserved0 : 1; /* 7 */
259     uint64_t AlphaFillMode : 3; /* 10..8 */
260     uint64_t AlphaFillSlot : 3; /* 13..11 */
261     uint64_t BackgroundAlpha : 10; /* 23..14 */
262     uint64_t BackgroundR : 10; /* 33..24 */
263     uint64_t BackgroundG : 10; /* 43..34 */
264     uint64_t BackgroundB : 10; /* 53..44 */
265     uint64_t ChromaLocHoriz : 2; /* 55..54 */
266     uint64_t ChromaLocVert : 2; /* 57..56 */
267     uint64_t reserved1 : 6; /* 63..58 */
268     uint64_t LumaWidth : 14; /* 77..64 */
269     uint64_t reserved2 : 2; /* 79..78 */
270     uint64_t LumaHeight : 14; /* 93..80 */
271     uint64_t reserved3 : 2; /* 95..94 */
272     uint64_t ChromaWidth : 14; /* 109..96 */
273     uint64_t reserved4 : 2; /* 111..110 */
274     uint64_t ChromaHeight : 14; /* 125..112 */
275     uint64_t reserved5 : 2; /* 127..126 */
276     /* 128 */
277     uint64_t TargetRectLeft : 14; /* 13..0 */
278     uint64_t reserved6 : 2; /* 15..14 */
279     uint64_t TargetRectRight : 14; /* 29..16 */
280     uint64_t reserved7 : 2; /* 31..30 */
281     uint64_t TargetRectTop : 14; /* 45..32 */
282     uint64_t reserved8 : 2; /* 47..46 */
283     uint64_t TargetRectBottom : 14; /* 61..48 */
284     uint64_t reserved9 : 2; /* 63..62 */
285     uint64_t SurfaceWidth : 14; /* 77..64 */
286     uint64_t reserved10 : 2; /* 79..78 */
287     uint64_t SurfaceHeight : 14; /* 93..80 */
288     uint64_t reserved11 : 2; /* 95..94 */
289     uint64_t BlkKind : 4; /* 99..96 */
290     uint64_t BlkHeight : 4; /* 103..100 */
291     uint64_t OutputFlipX : 1; /* 104 */
292     uint64_t OutputFlipY : 1; /* 105 */
293     uint64_t OutputTranspose : 1; /* 106 */
294     uint64_t reserved12 : 21; /* 127..107 */
295 } Blending0Struct;
296 
297 typedef struct {
298     uint64_t AlphaK1 : 10; /* 9..0 */
299     uint64_t reserved0 : 6; /* 15..10 */
300     uint64_t AlphaK2 : 10; /* 25..16 */
301     uint64_t reserved1 : 6; /* 31..26 */
302     uint64_t SrcFactCMatchSelect : 3; /* 34..32 */
303     uint64_t reserved2 : 1; /* 35 */
304     uint64_t DstFactCMatchSelect : 3; /* 38..36 */
305     uint64_t reserved3 : 1; /* 39 */
306     uint64_t SrcFactAMatchSelect : 3; /* 42..40 */
307     uint64_t reserved4 : 1; /* 43 */
308     uint64_t DstFactAMatchSelect : 3; /* 46..44 */
309     uint64_t reserved5 : 1; /* 47 */
310     uint64_t reserved6 : 4; /* 51..48 */
311     uint64_t reserved7 : 4; /* 55..52 */
312     uint64_t reserved8 : 4; /* 59..56 */
313     uint64_t reserved9 : 4; /* 63..60 */
314     uint64_t reserved10 : 2; /* 65..64 */
315     uint64_t OverrideR : 10; /* 75..66 */
316     uint64_t OverrideG : 10; /* 85..76 */
317     uint64_t OverrideB : 10; /* 95..86 */
318     uint64_t OverrideA : 10; /* 105..96 */
319     uint64_t reserved11 : 2; /* 107..106 */
320     uint64_t UseOverrideR : 1; /* 108 */
321     uint64_t UseOverrideG : 1; /* 109 */
322     uint64_t UseOverrideB : 1; /* 110 */
323     uint64_t UseOverrideA : 1; /* 111 */
324     uint64_t MaskR : 1; /* 112 */
325     uint64_t MaskG : 1; /* 113 */
326     uint64_t MaskB : 1; /* 114 */
327     uint64_t MaskA : 1; /* 115 */
328     uint64_t reserved12 : 12; /* 127..116 */
329 } BlendingSurfaceStruct;
330 
331 typedef struct {
332     uint64_t TargetRectLeft : 14; /* 13..0 */
333     uint64_t reserved0 : 2; /* 15..14 */
334     uint64_t TargetRectRight : 14; /* 29..16 */
335     uint64_t reserved1 : 2; /* 31..30 */
336     uint64_t TargetRectTop : 14; /* 45..32 */
337     uint64_t reserved2 : 2; /* 47..46 */
338     uint64_t TargetRectBottom : 14; /* 61..48 */
339     uint64_t reserved3 : 2; /* 63..62 */
340     uint64_t Enable0 : 8; /* 71..64 */
341     uint64_t Enable1 : 8; /* 79..72 */
342     uint64_t Enable2 : 8; /* 87..80 */
343     uint64_t Enable3 : 8; /* 95..88 */
344     uint64_t Enable4 : 8; /* 103..96 */
345     uint64_t DownsampleHoriz : 11; /* 114..104 */
346     uint64_t reserved4 : 1; /* 115 */
347     uint64_t DownsampleVert : 11; /* 126..116 */
348     uint64_t reserved5 : 1; /* 127 */
349     /* 128 */
350     uint64_t FilterNoise0 : 10; /* 9..0 */
351     uint64_t FilterDetail0 : 10; /* 19..10 */
352     uint64_t FilterNoise1 : 10; /* 29..20 */
353     uint64_t reserved6 : 2; /* 31..30 */
354     uint64_t FilterDetail1 : 10; /* 41..32 */
355     uint64_t FilterNoise2 : 10; /* 51..42 */
356     uint64_t FilterDetail2 : 10; /* 61..52 */
357     uint64_t reserved7 : 2; /* 63..62 */
358     uint64_t FilterNoise3 : 10; /* 73..64 */
359     uint64_t FilterDetail3 : 10; /* 83..74 */
360     uint64_t FilterNoise4 : 10; /* 93..84 */
361     uint64_t reserved8 : 2; /* 95..94 */
362     uint64_t FilterDetail4 : 10; /* 105..96 */
363     uint64_t reserved9 : 22; /* 127..106 */
364     /* 256 */
365     uint64_t ChromaNoise0 : 10; /* 9..0 */
366     uint64_t ChromaDetail0 : 10; /* 19..10 */
367     uint64_t ChromaNoise1 : 10; /* 29..20 */
368     uint64_t reserved10 : 2; /* 31..30 */
369     uint64_t ChromaDetail1 : 10; /* 41..32 */
370     uint64_t ChromaNoise2 : 10; /* 51..42 */
371     uint64_t ChromaDetail2 : 10; /* 61..52 */
372     uint64_t reserved11 : 2; /* 63..62 */
373     uint64_t ChromaNoise3 : 10; /* 73..64 */
374     uint64_t ChromaDetail3 : 10; /* 83..74 */
375     uint64_t ChromaNoise4 : 10; /* 93..84 */
376     uint64_t reserved12 : 2; /* 95..94 */
377     uint64_t ChromaDetail4 : 10; /* 105..96 */
378     uint64_t reserved13 : 22; /* 127..106 */
379     /* 384 */
380     uint64_t Mode0 : 4; /* 3..0 */
381     uint64_t AccumWeight0 : 3; /* 6..4 */
382     uint64_t Iir0 : 11; /* 17..7 */
383     uint64_t reserved14 : 2; /* 19..18 */
384     uint64_t Mode1 : 4; /* 23..20 */
385     uint64_t AccumWeight1 : 3; /* 26..24 */
386     uint64_t Iir1 : 11; /* 37..27 */
387     uint64_t reserved15 : 2; /* 39..38 */
388     uint64_t Mode2 : 4; /* 43..40 */
389     uint64_t AccumWeight2 : 3; /* 46..44 */
390     uint64_t Iir2 : 11; /* 57..47 */
391     uint64_t reserved16 : 6; /* 63..58 */
392     uint64_t Mode3 : 4; /* 67..64 */
393     uint64_t AccumWeight3 : 3; /* 70..68 */
394     uint64_t Iir3 : 11; /* 81..71 */
395     uint64_t reserved17 : 2; /* 83..82 */
396     uint64_t Mode4 : 4; /* 87..84 */
397     uint64_t AccumWeight4 : 3; /* 90..88 */
398     uint64_t Iir4 : 11; /* 101..91 */
399     uint64_t reserved18 : 8; /* 109..102 */
400     uint64_t OutputFlipX : 1; /* 110 */
401     uint64_t OutputFlipY : 1; /* 111 */
402     uint64_t reserved19 : 10; /* 121..112 */
403     uint64_t reserved20 : 6; /* 127..122 */
404 } FetchControl0Struct;
405 
406 typedef struct {
407     uint64_t f00 : 10; /* 9..0 */
408     uint64_t f10 : 10; /* 19..10 */
409     uint64_t f20 : 10; /* 29..20 */
410     uint64_t reserved0 : 2; /* 31..30 */
411     uint64_t f01 : 10; /* 41..32 */
412     uint64_t f11 : 10; /* 51..42 */
413     uint64_t f21 : 10; /* 61..52 */
414     uint64_t reserved1 : 2; /* 63..62 */
415     uint64_t f02 : 10; /* 73..64 */
416     uint64_t f12 : 10; /* 83..74 */
417     uint64_t f22 : 10; /* 93..84 */
418     uint64_t reserved2 : 2; /* 95..94 */
419     uint64_t f03 : 10; /* 105..96 */
420     uint64_t f13 : 10; /* 115..106 */
421     uint64_t f23 : 10; /* 125..116 */
422     uint64_t reserved3 : 2; /* 127..126 */
423 } FetchControlCoeffStruct;
424 
425 typedef struct {
426     SurfaceCache0Struct surfaceCache0Struct;
427     SurfaceList0Struct surfaceList0Struct;
428     SurfaceListClearRectStruct surfaceListClearRectStruct[4];
429     SurfaceListSurfaceStruct surfaceListSurfaceStruct[5];
430     ColorConversionLumaAlphaStruct colorConversionLumaAlphaStruct[5];
431     ColorConversionMatrixStruct colorConversionMatrixStruct[5];
432     ColorConversionClampStruct colorConversionClampStruct[5];
433     Blending0Struct blending0Struct;
434     BlendingSurfaceStruct blendingSurfaceStruct[5];
435     FetchControl0Struct fetchControl0Struct;
436     FetchControlCoeffStruct fetchControlCoeffStruct[520];
437 } ConfigStruct;
438 
439 #endif
440