Re: [PATCH 15/29] drm/i915: Parametrize MOCS registers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 04, 2015 at 11:20:03PM +0200, ville.syrjala@xxxxxxxxxxxxxxx wrote:
>  	if (get_mocs_settings(req->ring->dev, &t)) {
>  		/* Program the control registers */
> -		ret = emit_mocs_control_table(req, &t, GEN9_GFX_MOCS_0);
> +		ret = emit_mocs_control_table(req, &t, RCS);
>  		if (ret)
>  			return ret;
>  
> -		ret = emit_mocs_control_table(req, &t, GEN9_MFX0_MOCS_0);
> +		ret = emit_mocs_control_table(req, &t, VCS);
>  		if (ret)
>  			return ret;
>  
> -		ret = emit_mocs_control_table(req, &t, GEN9_MFX1_MOCS_0);
> +		ret = emit_mocs_control_table(req, &t, VCS2);
>  		if (ret)
>  			return ret;
>  
> -		ret = emit_mocs_control_table(req, &t, GEN9_VEBOX_MOCS_0);
> +		ret = emit_mocs_control_table(req, &t, VECS);
>  		if (ret)
>  			return ret;
>  
> -		ret = emit_mocs_control_table(req, &t, GEN9_BLT_MOCS_0);
> +		ret = emit_mocs_control_table(req, &t, BCS);
>  		if (ret)
>  			return ret;

For bonus points!

if (get_mocs_settings())
	for_each_ring(dev_priv, ring, i) {
		ret = emit_mocs_control_table(req, &t, i);
 		if (ret)
  			return ret;
	}

And then I am definitely sold.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux