Lines Matching refs:identity

49 		*value = gpu->identity.model;  in etnaviv_gpu_get_param()
53 *value = gpu->identity.revision; in etnaviv_gpu_get_param()
57 *value = gpu->identity.features; in etnaviv_gpu_get_param()
61 *value = gpu->identity.minor_features0; in etnaviv_gpu_get_param()
65 *value = gpu->identity.minor_features1; in etnaviv_gpu_get_param()
69 *value = gpu->identity.minor_features2; in etnaviv_gpu_get_param()
73 *value = gpu->identity.minor_features3; in etnaviv_gpu_get_param()
77 *value = gpu->identity.minor_features4; in etnaviv_gpu_get_param()
81 *value = gpu->identity.minor_features5; in etnaviv_gpu_get_param()
85 *value = gpu->identity.minor_features6; in etnaviv_gpu_get_param()
89 *value = gpu->identity.minor_features7; in etnaviv_gpu_get_param()
93 *value = gpu->identity.minor_features8; in etnaviv_gpu_get_param()
97 *value = gpu->identity.minor_features9; in etnaviv_gpu_get_param()
101 *value = gpu->identity.minor_features10; in etnaviv_gpu_get_param()
105 *value = gpu->identity.minor_features11; in etnaviv_gpu_get_param()
109 *value = gpu->identity.stream_count; in etnaviv_gpu_get_param()
113 *value = gpu->identity.register_max; in etnaviv_gpu_get_param()
117 *value = gpu->identity.thread_count; in etnaviv_gpu_get_param()
121 *value = gpu->identity.vertex_cache_size; in etnaviv_gpu_get_param()
125 *value = gpu->identity.shader_core_count; in etnaviv_gpu_get_param()
129 *value = gpu->identity.pixel_pipes; in etnaviv_gpu_get_param()
133 *value = gpu->identity.vertex_output_buffer_size; in etnaviv_gpu_get_param()
137 *value = gpu->identity.buffer_size; in etnaviv_gpu_get_param()
141 *value = gpu->identity.instruction_count; in etnaviv_gpu_get_param()
145 *value = gpu->identity.num_constants; in etnaviv_gpu_get_param()
149 *value = gpu->identity.varyings_count; in etnaviv_gpu_get_param()
169 ((gpu)->identity.model == chipModel_##mod && \
170 (gpu)->identity.revision == rev)
176 if (gpu->identity.minor_features0 & in etnaviv_hw_specs()
186 gpu->identity.stream_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
188 gpu->identity.register_max = etnaviv_field(specs[0], in etnaviv_hw_specs()
190 gpu->identity.thread_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
192 gpu->identity.vertex_cache_size = etnaviv_field(specs[0], in etnaviv_hw_specs()
194 gpu->identity.shader_core_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
196 gpu->identity.pixel_pipes = etnaviv_field(specs[0], in etnaviv_hw_specs()
198 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
202 gpu->identity.buffer_size = etnaviv_field(specs[1], in etnaviv_hw_specs()
204 gpu->identity.instruction_count = etnaviv_field(specs[1], in etnaviv_hw_specs()
206 gpu->identity.num_constants = etnaviv_field(specs[1], in etnaviv_hw_specs()
209 gpu->identity.varyings_count = etnaviv_field(specs[2], in etnaviv_hw_specs()
216 gpu->identity.stream_count = streams; in etnaviv_hw_specs()
220 if (gpu->identity.stream_count == 0) { in etnaviv_hw_specs()
221 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
222 gpu->identity.stream_count = 4; in etnaviv_hw_specs()
224 gpu->identity.stream_count = 1; in etnaviv_hw_specs()
228 if (gpu->identity.register_max) in etnaviv_hw_specs()
229 gpu->identity.register_max = 1 << gpu->identity.register_max; in etnaviv_hw_specs()
230 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
231 gpu->identity.register_max = 32; in etnaviv_hw_specs()
233 gpu->identity.register_max = 64; in etnaviv_hw_specs()
236 if (gpu->identity.thread_count) in etnaviv_hw_specs()
237 gpu->identity.thread_count = 1 << gpu->identity.thread_count; in etnaviv_hw_specs()
238 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
239 gpu->identity.thread_count = 64; in etnaviv_hw_specs()
240 else if (gpu->identity.model == chipModel_GC500 || in etnaviv_hw_specs()
241 gpu->identity.model == chipModel_GC530) in etnaviv_hw_specs()
242 gpu->identity.thread_count = 128; in etnaviv_hw_specs()
244 gpu->identity.thread_count = 256; in etnaviv_hw_specs()
246 if (gpu->identity.vertex_cache_size == 0) in etnaviv_hw_specs()
247 gpu->identity.vertex_cache_size = 8; in etnaviv_hw_specs()
249 if (gpu->identity.shader_core_count == 0) { in etnaviv_hw_specs()
250 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
251 gpu->identity.shader_core_count = 2; in etnaviv_hw_specs()
253 gpu->identity.shader_core_count = 1; in etnaviv_hw_specs()
256 if (gpu->identity.pixel_pipes == 0) in etnaviv_hw_specs()
257 gpu->identity.pixel_pipes = 1; in etnaviv_hw_specs()
260 if (gpu->identity.vertex_output_buffer_size) { in etnaviv_hw_specs()
261 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
262 1 << gpu->identity.vertex_output_buffer_size; in etnaviv_hw_specs()
263 } else if (gpu->identity.model == chipModel_GC400) { in etnaviv_hw_specs()
264 if (gpu->identity.revision < 0x4000) in etnaviv_hw_specs()
265 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
266 else if (gpu->identity.revision < 0x4200) in etnaviv_hw_specs()
267 gpu->identity.vertex_output_buffer_size = 256; in etnaviv_hw_specs()
269 gpu->identity.vertex_output_buffer_size = 128; in etnaviv_hw_specs()
271 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
274 switch (gpu->identity.instruction_count) { in etnaviv_hw_specs()
277 gpu->identity.model == chipModel_GC880) in etnaviv_hw_specs()
278 gpu->identity.instruction_count = 512; in etnaviv_hw_specs()
280 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
284 gpu->identity.instruction_count = 1024; in etnaviv_hw_specs()
288 gpu->identity.instruction_count = 2048; in etnaviv_hw_specs()
292 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
296 if (gpu->identity.num_constants == 0) in etnaviv_hw_specs()
297 gpu->identity.num_constants = 168; in etnaviv_hw_specs()
299 if (gpu->identity.varyings_count == 0) { in etnaviv_hw_specs()
300 if (gpu->identity.minor_features1 & chipMinorFeatures1_HALTI0) in etnaviv_hw_specs()
301 gpu->identity.varyings_count = 12; in etnaviv_hw_specs()
303 gpu->identity.varyings_count = 8; in etnaviv_hw_specs()
321 gpu->identity.varyings_count -= 1; in etnaviv_hw_specs()
332 gpu->identity.model = chipModel_GC500; in etnaviv_hw_identify()
333 gpu->identity.revision = etnaviv_field(chipIdentity, in etnaviv_hw_identify()
337 gpu->identity.model = gpu_read(gpu, VIVS_HI_CHIP_MODEL); in etnaviv_hw_identify()
338 gpu->identity.revision = gpu_read(gpu, VIVS_HI_CHIP_REV); in etnaviv_hw_identify()
346 if ((gpu->identity.model & 0xff00) == 0x0400 && in etnaviv_hw_identify()
347 gpu->identity.model != chipModel_GC420) { in etnaviv_hw_identify()
348 gpu->identity.model = gpu->identity.model & 0x0400; in etnaviv_hw_identify()
361 gpu->identity.revision = 0x1051; in etnaviv_hw_identify()
373 gpu->identity.model = chipModel_GC3000; in etnaviv_hw_identify()
374 gpu->identity.revision &= 0xffff; in etnaviv_hw_identify()
379 gpu->identity.model, gpu->identity.revision); in etnaviv_hw_identify()
389 gpu->identity.features = gpu_read(gpu, VIVS_HI_CHIP_FEATURE); in etnaviv_hw_identify()
392 if (gpu->identity.model == chipModel_GC700) in etnaviv_hw_identify()
393 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_hw_identify()
395 if ((gpu->identity.model == chipModel_GC500 && in etnaviv_hw_identify()
396 gpu->identity.revision < 2) || in etnaviv_hw_identify()
397 (gpu->identity.model == chipModel_GC300 && in etnaviv_hw_identify()
398 gpu->identity.revision < 0x2000)) { in etnaviv_hw_identify()
404 gpu->identity.minor_features0 = 0; in etnaviv_hw_identify()
405 gpu->identity.minor_features1 = 0; in etnaviv_hw_identify()
406 gpu->identity.minor_features2 = 0; in etnaviv_hw_identify()
407 gpu->identity.minor_features3 = 0; in etnaviv_hw_identify()
408 gpu->identity.minor_features4 = 0; in etnaviv_hw_identify()
409 gpu->identity.minor_features5 = 0; in etnaviv_hw_identify()
411 gpu->identity.minor_features0 = in etnaviv_hw_identify()
414 if (gpu->identity.minor_features0 & in etnaviv_hw_identify()
416 gpu->identity.minor_features1 = in etnaviv_hw_identify()
418 gpu->identity.minor_features2 = in etnaviv_hw_identify()
420 gpu->identity.minor_features3 = in etnaviv_hw_identify()
422 gpu->identity.minor_features4 = in etnaviv_hw_identify()
424 gpu->identity.minor_features5 = in etnaviv_hw_identify()
429 if (gpu->identity.model == chipModel_GC600) in etnaviv_hw_identify()
451 if (gpu->identity.minor_features2 & in etnaviv_gpu_update_clock()
560 if (gpu->identity.revision == 0x4301 || in etnaviv_gpu_enable_mlcg()
561 gpu->identity.revision == 0x4302) in etnaviv_gpu_enable_mlcg()
569 if (gpu->identity.model >= chipModel_GC400 && in etnaviv_gpu_enable_mlcg()
570 gpu->identity.model != chipModel_GC420 && in etnaviv_gpu_enable_mlcg()
571 !(gpu->identity.minor_features3 & chipMinorFeatures3_BUG_FIXES12)) in etnaviv_gpu_enable_mlcg()
578 if (gpu->identity.revision < 0x5000 && in etnaviv_gpu_enable_mlcg()
579 gpu->identity.minor_features0 & chipMinorFeatures0_HZ && in etnaviv_gpu_enable_mlcg()
580 !(gpu->identity.minor_features1 & in etnaviv_gpu_enable_mlcg()
584 if (gpu->identity.revision < 0x5422) in etnaviv_gpu_enable_mlcg()
647 if ((gpu->identity.revision > 0x5420) && in etnaviv_gpu_setup_pulse_eater()
648 (gpu->identity.features & chipFeatures_PIPE_3D)) in etnaviv_gpu_setup_pulse_eater()
667 if (gpu->identity.revision == 0x5007) in etnaviv_gpu_hw_init()
721 if (gpu->identity.model == 0) { in etnaviv_gpu_init()
728 if (gpu->identity.features & chipFeatures_PIPE_VG && in etnaviv_gpu_init()
729 gpu->identity.features & chipFeatures_FE20) { in etnaviv_gpu_init()
739 if ((gpu->identity.minor_features7 & chipMinorFeatures7_BIT_SECURITY) && in etnaviv_gpu_init()
740 (gpu->identity.minor_features10 & chipMinorFeatures10_SECURITY_AHB)) in etnaviv_gpu_init()
762 if (!(gpu->identity.features & chipFeatures_PIPE_3D) || in etnaviv_gpu_init()
763 (gpu->identity.minor_features0 & chipMinorFeatures0_MC20)) { in etnaviv_gpu_init()
772 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_gpu_init()
856 gpu->identity.features); in etnaviv_gpu_debugfs()
858 gpu->identity.minor_features0); in etnaviv_gpu_debugfs()
860 gpu->identity.minor_features1); in etnaviv_gpu_debugfs()
862 gpu->identity.minor_features2); in etnaviv_gpu_debugfs()
864 gpu->identity.minor_features3); in etnaviv_gpu_debugfs()
866 gpu->identity.minor_features4); in etnaviv_gpu_debugfs()
868 gpu->identity.minor_features5); in etnaviv_gpu_debugfs()
870 gpu->identity.minor_features6); in etnaviv_gpu_debugfs()
872 gpu->identity.minor_features7); in etnaviv_gpu_debugfs()
874 gpu->identity.minor_features8); in etnaviv_gpu_debugfs()
876 gpu->identity.minor_features9); in etnaviv_gpu_debugfs()
878 gpu->identity.minor_features10); in etnaviv_gpu_debugfs()
880 gpu->identity.minor_features11); in etnaviv_gpu_debugfs()
884 gpu->identity.stream_count); in etnaviv_gpu_debugfs()
886 gpu->identity.register_max); in etnaviv_gpu_debugfs()
888 gpu->identity.thread_count); in etnaviv_gpu_debugfs()
890 gpu->identity.vertex_cache_size); in etnaviv_gpu_debugfs()
892 gpu->identity.shader_core_count); in etnaviv_gpu_debugfs()
894 gpu->identity.pixel_pipes); in etnaviv_gpu_debugfs()
896 gpu->identity.vertex_output_buffer_size); in etnaviv_gpu_debugfs()
898 gpu->identity.buffer_size); in etnaviv_gpu_debugfs()
900 gpu->identity.instruction_count); in etnaviv_gpu_debugfs()
902 gpu->identity.num_constants); in etnaviv_gpu_debugfs()
904 gpu->identity.varyings_count); in etnaviv_gpu_debugfs()
936 if (gpu->identity.features & chipFeatures_DEBUG_MODE) { in etnaviv_gpu_debugfs()