[PATCH 2/2] drm/radeon/kms: add blit support for cayman

Nils Wallménius nils.wallmenius at gmail.com
Wed May 25 08:47:45 PDT 2011


>@@ -582,11 +588,17 @@ int evergreen_blit_init(struct radeon_device *rdev)
> 	obj_size = ALIGN(obj_size, 256);
>
> 	rdev->r600_blit.vs_offset = obj_size;
>-	obj_size += evergreen_vs_size * 4;
>+	if (rdev->family < CHIP_CAYMAN)
>+		obj_size += evergreen_vs_size * 4;
>+	else
>+		obj_size += cayman_vs_size * 4;
> 	obj_size = ALIGN(obj_size, 256);
>
> 	rdev->r600_blit.ps_offset = obj_size;
>-	obj_size += evergreen_ps_size * 4;
>+	if (rdev->family < CHIP_CAYMAN)
>+		obj_size += evergreen_ps_size * 4;
>+	else
>+		obj_size += evergreen_ps_size * 4;
> 	obj_size = ALIGN(obj_size, 256);
>
> 	r = radeon_bo_create(rdev, obj_size, PAGE_SIZE, true, RADEON_GEM_DOMAIN_VRAM,


Hi, looks like a c&p error using evergreen_ps_size also for cayman


More information about the dri-devel mailing list