Displaying 1 result from an estimated 1 matches for "asic_is_rn50".
2024 Aug 21
1
[PATCH v2 78/86] drm/radeon: Run DRM default client setup
...if (!ent)
@@ -314,7 +318,15 @@ static int radeon_pci_probe(struct pci_dev *pdev,
if (ret)
goto err_agp;
- radeon_fbdev_setup(dev->dev_private);
+ rdev = dev->dev_private;
+ if (rdev->mc.real_vram_size <= (8 * 1024 * 1024))
+ format = drm_format_info(DRM_FORMAT_C8);
+ else if (ASIC_IS_RN50(rdev) || rdev->mc.real_vram_size <= (32 * 1024 * 1024))
+ format = drm_format_info(DRM_FORMAT_RGB565);
+ else
+ format = NULL;
+
+ drm_client_setup(dev, format);
return 0;
@@ -581,6 +593,8 @@ static const struct drm_driver kms_driver = {
.gem_prime_import_sg_table = radeon_gem_pri...