xref: /aosp_15_r20/external/mesa3d/src/imagination/vulkan/usc/programs/pvr_cdm_load_sr.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright © 2022 Imagination Technologies Ltd.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21  * SOFTWARE.
22  */
23 
24 #ifndef PVR_CDM_LOAD_SR_H
25 #define PVR_CDM_LOAD_SR_H
26 
27 #include <stdint.h>
28 
29 /* clang-format off */
30 static const uint8_t pvr_cdm_load_sr_code[] = {
31 	0x25, 0x02, 0x87, 0x81,
32 	0x04, 0x00, 0x00, 0x00,
33 	0x84, 0x04, 0x25, 0x02,
34 	0x87, 0x80, 0x04, 0x00,
35 	0x00, 0x00, 0x85, 0x04,
36 	0x25, 0x02, 0x87, 0x83,
37 	0x04, 0x00, 0x00, 0x00,
38 	0x86, 0x04, 0x25, 0x02,
39 	0x87, 0x82, 0x04, 0x00,
40 	0x00, 0x00, 0x87, 0x04,
41 	0x56, 0x20, 0xF1, 0x85,
42 	0x02, 0x80, 0x81, 0xD0,
43 	0xC4, 0x08, 0x00, 0xFF,
44 	0x02, 0x80, 0x6A, 0xFF,
45 	0x67, 0xF0, 0x40, 0x20,
46 	0x41, 0x8C, 0x80, 0x40,
47 	0x00, 0x50, 0x8F, 0xC0,
48 	0x80, 0x02, 0x04, 0x81,
49 	0x60, 0x00, 0x0A, 0x01,
50 	0x00, 0x00, 0x25, 0x36,
51 	0x87, 0x87, 0x00, 0x00,
52 	0x40, 0x05, 0xD1, 0x06,
53 	0x55, 0x20, 0xF1, 0x81,
54 	0x02, 0x00, 0xC0, 0xC6,
55 	0x08, 0x00, 0x02, 0x80,
56 	0x6A, 0xFF, 0x46, 0x42,
57 	0xD0, 0x03, 0xEA, 0xD1,
58 	0x41, 0x00, 0x01, 0x00,
59 	0x00, 0x51, 0x27, 0x06,
60 	0xEB, 0x84, 0x50, 0x20,
61 	0x86, 0x87, 0x04, 0x00,
62 	0xC0, 0x06, 0x87, 0x22,
63 	0x25, 0x32, 0x87, 0x87,
64 	0x00, 0x1F, 0x40, 0xC5,
65 	0x0C, 0xFF, 0x25, 0x02,
66 	0x87, 0xC0, 0x0C, 0x00,
67 	0x00, 0x00, 0x83, 0x0C,
68 	0x47, 0x42, 0xD0, 0x03,
69 	0xEA, 0x85, 0x41, 0x90,
70 	0x01, 0x08, 0x00, 0x00,
71 	0x85, 0x0C, 0x47, 0x42,
72 	0xD0, 0x03, 0xEA, 0xC5,
73 	0x41, 0x90, 0x01, 0x08,
74 	0x00, 0x00, 0xC5, 0x0C,
75 	0x67, 0xF0, 0x40, 0x28,
76 	0x42, 0x8C, 0x80, 0x40,
77 	0x80, 0xC5, 0x80, 0x90,
78 	0x80, 0xFF, 0x04, 0x81,
79 	0x60, 0x00, 0xCC, 0xFF,
80 	0xFF, 0xFF, 0x66, 0xF0,
81 	0x40, 0x28, 0x42, 0x8C,
82 	0x80, 0x40, 0x00, 0x51,
83 	0xD0, 0x80, 0x04, 0x81,
84 	0x60, 0x00, 0x86, 0xFF,
85 	0xFF, 0xFF, 0x46, 0x40,
86 	0xF1, 0xB0, 0xE2, 0x81,
87 	0x4D, 0x01, 0x00, 0x00,
88 	0x00, 0xFF, 0x04, 0x81,
89 	0x60, 0x00, 0x32, 0x00,
90 	0x00, 0x00, 0x02, 0x80,
91 	0x6C, 0xC4, 0x45, 0x12,
92 	0xD3, 0x3F, 0x01, 0x00,
93 	0x00, 0xAB, 0x01, 0xFF,
94 	0x44, 0x12, 0xD3, 0x3F,
95 	0x00, 0x00, 0x00, 0x40,
96 	0x44, 0x10, 0xD3, 0x3F,
97 	0x40, 0x00, 0x00, 0xFF,
98 	0x02, 0x80, 0x6C, 0x84,
99 	0x04, 0x80, 0x60, 0x00,
100 	0x40, 0x00, 0x00, 0x00,
101 	0x46, 0x50, 0xFB, 0xB0,
102 	0x87, 0xE2, 0x81, 0x4B,
103 	0x03, 0x00, 0x00, 0x00,
104 	0x04, 0x81, 0x61, 0x00,
105 	0xF4, 0xFF, 0xFF, 0xFF,
106 	0x02, 0x80, 0x6C, 0xC4,
107 	0x45, 0x12, 0xD3, 0x3F,
108 	0x01, 0x00, 0x00, 0xAA,
109 	0x01, 0xFF, 0x44, 0x12,
110 	0xD3, 0x3F, 0x00, 0x00,
111 	0x00, 0x40, 0x44, 0x10,
112 	0xD3, 0x3F, 0x40, 0x00,
113 	0x00, 0xFF, 0x03, 0x80,
114 	0x6C, 0x84, 0xF1, 0xFF,
115 	0x04, 0x80, 0xEE, 0x00,
116 	0xF2, 0xFF, 0xFF, 0xFF
117 };
118 /* clang-format on */
119 
120 #endif /* PVR_CDM_LOAD_SR_H */
121