| 1 |
/* |
| 2 |
* Copyright © 2025 Imagination Technologies Ltd. |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef GE8300_H |
| 8 |
#define GE8300_H |
| 9 |
|
| 10 |
#include <stdbool.h> |
| 11 |
|
| 12 |
#include "pvr_device_info.h" |
| 13 |
|
| 14 |
#define PVR_DEVICE_IDENT_22_V_54_30 \ |
| 15 |
.device_id = 0x22054030, .series_name = "Rogue", \ |
| 16 |
.public_name = "GE8300", .arch = PVR_DEVICE_ARCH_ROGUE |
| 17 |
|
| 18 |
static const struct pvr_device_features pvr_device_features_22_V_54_30 = { |
| 19 |
.has_astc = true, |
| 20 |
.has_common_store_size_in_dwords = true, |
| 21 |
.has_compute = true, |
| 22 |
.has_compute_overlap = true, |
| 23 |
/* .has_gs_rta_support = true, */ |
| 24 |
.has_ipf_creq_pf = true, |
| 25 |
.has_isp_max_tiles_in_flight = true, |
| 26 |
.has_isp_samples_per_pixel = true, |
| 27 |
.has_max_instances_per_pds_task = true, |
| 28 |
.has_max_multisample = true, |
| 29 |
.has_max_partitions = true, |
| 30 |
.has_max_usc_tasks = true, |
| 31 |
.has_num_clusters = true, |
| 32 |
.has_num_raster_pipes = true, |
| 33 |
.has_pbe2_in_xe = true, |
| 34 |
.has_pbe_filterable_f16 = true, |
| 35 |
.has_pbe_yuv = true, |
| 36 |
.has_roguexe = true, |
| 37 |
.has_simple_internal_parameter_format = true, |
| 38 |
.has_simple_internal_parameter_format_v1 = true, |
| 39 |
.has_simple_parameter_format_version = true, |
| 40 |
.has_slc_cache_line_size_bits = true, |
| 41 |
.has_tile_size_16x16 = true, |
| 42 |
.has_tile_size_x = true, |
| 43 |
.has_tile_size_y = true, |
| 44 |
.has_tpu_parallel_instances = true, |
| 45 |
.has_unified_store_depth = true, |
| 46 |
.has_usc_f16sop_u8 = true, |
| 47 |
.has_usc_itrsmp = true, |
| 48 |
.has_usc_itrsmp_enhanced = true, |
| 49 |
.has_usc_itr_parallel_instances = true, |
| 50 |
.has_usc_min_output_registers_per_pix = true, |
| 51 |
.has_usc_slots = true, |
| 52 |
.has_uvs_banks = true, |
| 53 |
.has_uvs_pba_entries = true, |
| 54 |
.has_uvs_vtx_entries = true, |
| 55 |
.has_vdm_cam_size = true, |
| 56 |
|
| 57 |
.common_store_size_in_dwords = 1024U * 4U * 4U, |
| 58 |
.isp_max_tiles_in_flight = 4U, |
| 59 |
.isp_samples_per_pixel = 1U, |
| 60 |
.max_instances_per_pds_task = 32U, |
| 61 |
.max_multisample = 4U, |
| 62 |
.max_partitions = 10U, |
| 63 |
.max_usc_tasks = 104U, |
| 64 |
.num_clusters = 1U, |
| 65 |
.num_raster_pipes = 1U, |
| 66 |
.simple_parameter_format_version = 1U, |
| 67 |
.slc_cache_line_size_bits = 512U, |
| 68 |
.tile_size_x = 16U, |
| 69 |
.tile_size_y = 16U, |
| 70 |
.tpu_parallel_instances = 4U, |
| 71 |
.unified_store_depth = 208U, |
| 72 |
.usc_itr_parallel_instances = 16U, |
| 73 |
.usc_min_output_registers_per_pix = 2U, |
| 74 |
.usc_slots = 64U, |
| 75 |
.uvs_banks = 4U, |
| 76 |
.uvs_pba_entries = 320U, |
| 77 |
.uvs_vtx_entries = 288U, |
| 78 |
.vdm_cam_size = 64U, |
| 79 |
|
| 80 |
.has_s8xe = true, |
| 81 |
}; |
| 82 |
|
| 83 |
static const struct pvr_device_enhancements |
| 84 |
pvr_device_enhancements_22_67_54_30 = { |
| 85 |
.has_ern35421 = true, |
| 86 |
.has_ern38748 = true, |
| 87 |
.has_ern42307 = true, |
| 88 |
}; |
| 89 |
|
| 90 |
static const struct pvr_device_quirks pvr_device_quirks_22_67_54_30 = { |
| 91 |
.has_brn49927 = true, |
| 92 |
.has_brn66011 = true, |
| 93 |
.has_brn70165 = true, |
| 94 |
.has_brn74056 = true, |
| 95 |
}; |
| 96 |
|
| 97 |
static const struct pvr_device_info pvr_device_info_22_67_54_30 = { |
| 98 |
.ident = { |
| 99 |
PVR_DEVICE_IDENT_22_V_54_30, |
| 100 |
.b = 22, |
| 101 |
.v = 67, |
| 102 |
.n = 54, |
| 103 |
.c = 30, |
| 104 |
}, |
| 105 |
.features = pvr_device_features_22_V_54_30, |
| 106 |
.enhancements = pvr_device_enhancements_22_67_54_30, |
| 107 |
.quirks = pvr_device_quirks_22_67_54_30, |
| 108 |
}; |
| 109 |
|
| 110 |
static const struct pvr_device_enhancements |
| 111 |
pvr_device_enhancements_22_68_54_30 = { |
| 112 |
.has_ern35421 = true, |
| 113 |
.has_ern38748 = true, |
| 114 |
.has_ern42307 = true, |
| 115 |
}; |
| 116 |
|
| 117 |
static const struct pvr_device_quirks pvr_device_quirks_22_68_54_30 = { |
| 118 |
.has_brn49927 = true, |
| 119 |
.has_brn66011 = true, |
| 120 |
.has_brn70165 = true, |
| 121 |
.has_brn74056 = true, |
| 122 |
}; |
| 123 |
|
| 124 |
static const struct pvr_device_info pvr_device_info_22_68_54_30 = { |
| 125 |
.ident = { |
| 126 |
PVR_DEVICE_IDENT_22_V_54_30, |
| 127 |
.b = 22, |
| 128 |
.v = 68, |
| 129 |
.n = 54, |
| 130 |
.c = 30, |
| 131 |
}, |
| 132 |
.features = pvr_device_features_22_V_54_30, |
| 133 |
.enhancements = pvr_device_enhancements_22_68_54_30, |
| 134 |
.quirks = pvr_device_quirks_22_68_54_30, |
| 135 |
}; |
| 136 |
|
| 137 |
#define PVR_DEVICE_IDENT_22_V_54_38 \ |
| 138 |
.device_id = 0x22054038, .series_name = "Rogue", .public_name = "GE8300" |
| 139 |
|
| 140 |
static const struct pvr_device_features pvr_device_features_22_V_54_38 = { |
| 141 |
.has_astc = true, |
| 142 |
.has_common_store_size_in_dwords = true, |
| 143 |
.has_compute = true, |
| 144 |
.has_compute_overlap = true, |
| 145 |
/* .has_gs_rta_support = true, */ |
| 146 |
.has_ipf_creq_pf = true, |
| 147 |
.has_isp_max_tiles_in_flight = true, |
| 148 |
.has_isp_samples_per_pixel = true, |
| 149 |
.has_max_instances_per_pds_task = true, |
| 150 |
.has_max_multisample = true, |
| 151 |
.has_max_partitions = true, |
| 152 |
.has_max_usc_tasks = true, |
| 153 |
.has_num_clusters = true, |
| 154 |
.has_num_raster_pipes = true, |
| 155 |
.has_pbe2_in_xe = true, |
| 156 |
.has_pbe_filterable_f16 = true, |
| 157 |
.has_pbe_yuv = true, |
| 158 |
.has_roguexe = true, |
| 159 |
.has_simple_internal_parameter_format = true, |
| 160 |
.has_simple_internal_parameter_format_v1 = true, |
| 161 |
.has_simple_parameter_format_version = true, |
| 162 |
.has_slc_cache_line_size_bits = true, |
| 163 |
.has_tile_size_16x16 = true, |
| 164 |
.has_tile_size_x = true, |
| 165 |
.has_tile_size_y = true, |
| 166 |
.has_tpu_parallel_instances = true, |
| 167 |
.has_unified_store_depth = true, |
| 168 |
.has_usc_f16sop_u8 = true, |
| 169 |
.has_usc_itrsmp = true, |
| 170 |
.has_usc_itrsmp_enhanced = true, |
| 171 |
.has_usc_min_output_registers_per_pix = true, |
| 172 |
.has_usc_slots = true, |
| 173 |
.has_uvs_banks = true, |
| 174 |
.has_uvs_pba_entries = true, |
| 175 |
.has_uvs_vtx_entries = true, |
| 176 |
.has_vdm_cam_size = true, |
| 177 |
|
| 178 |
.common_store_size_in_dwords = 1024U * 4U * 4U, |
| 179 |
.isp_max_tiles_in_flight = 4U, |
| 180 |
.isp_samples_per_pixel = 1U, |
| 181 |
.max_instances_per_pds_task = 32U, |
| 182 |
.max_multisample = 4U, |
| 183 |
.max_partitions = 10U, |
| 184 |
.max_usc_tasks = 104U, |
| 185 |
.num_clusters = 1U, |
| 186 |
.num_raster_pipes = 1U, |
| 187 |
.simple_parameter_format_version = 1U, |
| 188 |
.slc_cache_line_size_bits = 512U, |
| 189 |
.tile_size_x = 16U, |
| 190 |
.tile_size_y = 16U, |
| 191 |
.tpu_parallel_instances = 4U, |
| 192 |
.unified_store_depth = 208U, |
| 193 |
.usc_min_output_registers_per_pix = 2U, |
| 194 |
.usc_slots = 64U, |
| 195 |
.uvs_banks = 4U, |
| 196 |
.uvs_pba_entries = 320U, |
| 197 |
.uvs_vtx_entries = 288U, |
| 198 |
.vdm_cam_size = 64U, |
| 199 |
|
| 200 |
.has_s8xe = true, |
| 201 |
.has_usc_itr_parallel_instances = true, |
| 202 |
|
| 203 |
.usc_itr_parallel_instances = 16U, |
| 204 |
}; |
| 205 |
|
| 206 |
static const struct pvr_device_enhancements |
| 207 |
pvr_device_enhancements_22_102_54_38 = { |
| 208 |
.has_ern35421 = true, |
| 209 |
.has_ern38748 = true, |
| 210 |
.has_ern42307 = true, |
| 211 |
}; |
| 212 |
|
| 213 |
static const struct pvr_device_quirks pvr_device_quirks_22_102_54_38 = { |
| 214 |
.has_brn49927 = true, |
| 215 |
.has_brn66011 = true, |
| 216 |
.has_brn70165 = true, |
| 217 |
.has_brn74056 = true, |
| 218 |
}; |
| 219 |
|
| 220 |
static const struct pvr_device_info pvr_device_info_22_102_54_38 = { |
| 221 |
.ident = { |
| 222 |
PVR_DEVICE_IDENT_22_V_54_38, |
| 223 |
.b = 22, |
| 224 |
.v = 102, |
| 225 |
.n = 54, |
| 226 |
.c = 38, |
| 227 |
}, |
| 228 |
.features = pvr_device_features_22_V_54_38, |
| 229 |
.enhancements = pvr_device_enhancements_22_102_54_38, |
| 230 |
.quirks = pvr_device_quirks_22_102_54_38, |
| 231 |
}; |
| 232 |
|
| 233 |
#endif /* GE8300_H */ |