[PATCH] Re-write MSAA registers, if available.

Michel Dänzer michel at daenzer.net
Mon Apr 12 00:28:46 PDT 2010


On Sun, 2010-04-11 at 12:36 -0700, Corbin Simpson wrote: 
> Respin with pre-emptive version_patchlevel bump. This depends on a patch to
> DRM adding these registers to the safe list for r300, r420, and rv515.
> 
> ---
>  src/radeon_commonfuncs.c |   11 +++++++++--
>  1 files changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/src/radeon_commonfuncs.c b/src/radeon_commonfuncs.c
> index 8c46235..c9aefa3 100644
> --- a/src/radeon_commonfuncs.c
> +++ b/src/radeon_commonfuncs.c
> @@ -116,8 +116,10 @@ static void FUNC_NAME(RADEONInit3DEngine)(ScrnInfoPtr pScrn)
>  	OUT_ACCEL_REG(R300_RB3D_ZCACHE_CTLSTAT, R300_ZC_FLUSH | R300_ZC_FREE);
>  	FINISH_ACCEL();
>  
> -	if (!info->cs) {
> -	    BEGIN_ACCEL(3);
> +	if (!info->cs ||
> +        info->dri->pKernelDRMVersion->version_minor >= 1 ||
> +        info->dri->pKernelDRMVersion->version_patchlevel >= 2) {
> +	    BEGIN_ACCEL(2);

The patchlevel can't be used for compatibility checks.


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the xorg-driver-ati mailing list