Debian Codegraph @

src/imagination/common/device_info/gx6250.h

raw
1 /*
2 * Copyright © 2023 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 GX6250_H
25 #define GX6250_H
26
27 #include <stdbool.h>
28
29 #include "pvr_device_info.h"
30
31 #define PVR_DEVICE_IDENT_4_V_2_51 \
32 .device_id = 0x6250, .series_name = "Rogue", \
33 .public_name = "GX6250", .arch = PVR_DEVICE_ARCH_ROGUE
34
35 static const struct pvr_device_features pvr_device_features_4_V_2_51 = {
36 .has_astc = true,
37 .has_cluster_grouping = true,
38 .has_common_store_size_in_dwords = true,
39 .has_compute = true,
40 .has_compute_morton_capable = true,
41 .has_compute_overlap = true,
42 .has_eight_output_registers = true,
43 .has_fbcdc_algorithm = true,
44 /* .has_gs_rta_support = true, */
45 .has_isp_max_tiles_in_flight = true,
46 .has_isp_samples_per_pixel = true,
47 .has_max_instances_per_pds_task = true,
48 .has_max_multisample = true,
49 .has_max_partitions = true,
50 .has_max_usc_tasks = true,
51 .has_num_clusters = true,
52 .has_num_raster_pipes = true,
53 .has_pbe_filterable_f16 = true,
54 .has_pbe_yuv = true,
55 .has_slc_cache_line_size_bits = true,
56 .has_slc_mcu_cache_controls = true,
57 .has_tf_bicubic_filter = true,
58 .has_tile_size_x = true,
59 .has_tile_size_y = true,
60 .has_tpu_array_textures = true,
61 .has_tpu_extended_integer_lookup = true,
62 .has_tpu_image_state_v2 = true,
63 .has_tpu_parallel_instances = true,
64 .has_unified_store_depth = true,
65 .has_usc_f16sop_u8 = true,
66 .has_usc_itrsmp = true,
67 .has_usc_itr_parallel_instances = true,
68 .has_usc_min_output_registers_per_pix = true,
69 .has_usc_slots = true,
70 .has_uvs_banks = true,
71 .has_uvs_pba_entries = true,
72 .has_uvs_vtx_entries = true,
73 .has_vdm_cam_size = true,
74 .has_xt_top_infrastructure = true,
75 .has_zls_subtile = true,
76
77 .common_store_size_in_dwords = 1280U * 4U * 4U,
78 .fbcdc_algorithm = 2,
79 .isp_max_tiles_in_flight = 4U,
80 .isp_samples_per_pixel = 2U,
81 .max_instances_per_pds_task = 32U,
82 .max_multisample = 8U,
83 .max_partitions = 8U,
84 .max_usc_tasks = 56U,
85 .num_clusters = 2U,
86 .num_raster_pipes = 1U,
87 .slc_cache_line_size_bits = 512U,
88 .tile_size_x = 32U,
89 .tile_size_y = 32U,
90 .tpu_parallel_instances = 4U,
91 .unified_store_depth = 256U,
92 .usc_itr_parallel_instances = 8U,
93 .usc_min_output_registers_per_pix = 2U,
94 .usc_slots = 32U,
95 .uvs_banks = 8U,
96 .uvs_pba_entries = 320U,
97 .uvs_vtx_entries = 288U,
98 .vdm_cam_size = 256U,
99
100 .has_requires_fb_cdc_zls_setup = true,
101 };
102
103 static const struct pvr_device_enhancements pvr_device_enhancements_4_40_2_51 = {
104 .has_ern35421 = true,
105 .has_ern38020 = true,
106 .has_ern38748 = true,
107 .has_ern42064 = true,
108 .has_ern42307 = true,
109 };
110
111 static const struct pvr_device_quirks pvr_device_quirks_4_40_2_51 = {
112 .has_brn44079 = true,
113 .has_brn47727 = true,
114 .has_brn48492 = true,
115 .has_brn48545 = true,
116 .has_brn49032 = true,
117 .has_brn49927 = true,
118 .has_brn51025 = true,
119 .has_brn51210 = true,
120 .has_brn51764 = true,
121 .has_brn52354 = true,
122 .has_brn52942 = true,
123 .has_brn58839 = true,
124 .has_brn62269 = true,
125 .has_brn66011 = true,
126 .has_brn70165 = true,
127 .has_brn74056 = true,
128 };
129
130 static const struct pvr_device_info pvr_device_info_4_40_2_51 = {
131 .ident = {
132 PVR_DEVICE_IDENT_4_V_2_51,
133 .b = 4,
134 .v = 40,
135 .n = 2,
136 .c = 51,
137 },
138 .features = pvr_device_features_4_V_2_51,
139 .enhancements = pvr_device_enhancements_4_40_2_51,
140 .quirks = pvr_device_quirks_4_40_2_51,
141 };
142
143 #define PVR_DEVICE_IDENT_4_V_2_58 \
144 .device_id = 0x6250, .series_name = "Rogue", .public_name = "GX6250"
145
146 static const struct pvr_device_features pvr_device_features_4_V_2_58 = {
147 .has_astc = true,
148 .has_cluster_grouping = true,
149 .has_common_store_size_in_dwords = true,
150 .has_compute = true,
151 .has_compute_morton_capable = true,
152 .has_compute_overlap = true,
153 .has_eight_output_registers = true,
154 .has_fbcdc_algorithm = true,
155 /* .has_gs_rta_support = true, */
156 .has_isp_max_tiles_in_flight = true,
157 .has_isp_samples_per_pixel = true,
158 .has_max_instances_per_pds_task = true,
159 .has_max_multisample = true,
160 .has_max_partitions = true,
161 .has_max_usc_tasks = true,
162 .has_num_clusters = true,
163 .has_num_raster_pipes = true,
164 .has_pbe_filterable_f16 = true,
165 .has_pbe_yuv = true,
166 .has_slc_cache_line_size_bits = true,
167 .has_slc_mcu_cache_controls = true,
168 .has_tf_bicubic_filter = true,
169 .has_tile_size_x = true,
170 .has_tile_size_y = true,
171 .has_tpu_array_textures = true,
172 .has_tpu_extended_integer_lookup = true,
173 .has_tpu_image_state_v2 = true,
174 .has_tpu_parallel_instances = true,
175 .has_unified_store_depth = true,
176 .has_usc_f16sop_u8 = true,
177 .has_usc_itrsmp = true,
178 .has_usc_itr_parallel_instances = true,
179 .has_usc_min_output_registers_per_pix = true,
180 .has_usc_slots = true,
181 .has_uvs_banks = true,
182 .has_uvs_pba_entries = true,
183 .has_uvs_vtx_entries = true,
184 .has_vdm_cam_size = true,
185 .has_xt_top_infrastructure = true,
186 .has_zls_subtile = true,
187
188 .common_store_size_in_dwords = 1536U * 4U * 4U,
189 .fbcdc_algorithm = 2,
190 .isp_max_tiles_in_flight = 4U,
191 .isp_samples_per_pixel = 2U,
192 .max_instances_per_pds_task = 32U,
193 .max_multisample = 8U,
194 .max_partitions = 8U,
195 .max_usc_tasks = 56U,
196 .num_clusters = 2U,
197 .num_raster_pipes = 1U,
198 .slc_cache_line_size_bits = 512U,
199 .tile_size_x = 32U,
200 .tile_size_y = 32U,
201 .tpu_parallel_instances = 4U,
202 .unified_store_depth = 256U,
203 .usc_itr_parallel_instances = 8U,
204 .usc_min_output_registers_per_pix = 2U,
205 .usc_slots = 32U,
206 .uvs_banks = 8U,
207 .uvs_pba_entries = 320U,
208 .uvs_vtx_entries = 288U,
209 .vdm_cam_size = 256U,
210
211 .has_requires_fb_cdc_zls_setup = true,
212 };
213
214 static const struct pvr_device_enhancements pvr_device_enhancements_4_45_2_58 = {
215 .has_ern35421 = true,
216 .has_ern38020 = true,
217 .has_ern38748 = true,
218 .has_ern42064 = true,
219 .has_ern42307 = true,
220 .has_ern45493 = true,
221 };
222
223 static const struct pvr_device_quirks pvr_device_quirks_4_45_2_58 = {
224 .has_brn44079 = true,
225 .has_brn49927 = true,
226 .has_brn51025 = true,
227 .has_brn51210 = true,
228 .has_brn51764 = true,
229 .has_brn52354 = true,
230 .has_brn52942 = true,
231 .has_brn58839 = true,
232 .has_brn62269 = true,
233 .has_brn66011 = true,
234 .has_brn70165 = true,
235 .has_brn74056 = true,
236 };
237
238 static const struct pvr_device_info pvr_device_info_4_45_2_58 = {
239 .ident = {
240 PVR_DEVICE_IDENT_4_V_2_58,
241 .b = 4,
242 .v = 45,
243 .n = 2,
244 .c = 58,
245 },
246 .features = pvr_device_features_4_V_2_58,
247 .enhancements = pvr_device_enhancements_4_45_2_58,
248 .quirks = pvr_device_quirks_4_45_2_58,
249 };
250
251 #endif /* GX6250_H */