[Mesa-dev] [PATCH 1/2] i965/cnl: Don't write to Cache Mode Register 1 on gen10+

Kenneth Graunke kenneth at whitecape.org
Fri Jun 23 01:10:49 UTC 2017


On Thursday, June 22, 2017 10:54:43 AM PDT Anuj Phogat wrote:
> With below optimizations gone in gen10+ we have nothing left out to
> write to CACHE_MODE_1:
> Float Blend Optimization Enable: This bit have been removed in gen10+
> Partial Resolve Disable in VC: Recommendation is to always set this
> field to 0 in gen10+ and that's the default value of the bit.
> 
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/brw_state_upload.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c
> index 926597b..5e82c1b 100644
> --- a/src/mesa/drivers/dri/i965/brw_state_upload.c
> +++ b/src/mesa/drivers/dri/i965/brw_state_upload.c
> @@ -60,8 +60,10 @@ brw_upload_initial_gpu_state(struct brw_context *brw)
>  
>     brw_upload_invariant_state(brw);
>  
> -   /* Recommended optimization for Victim Cache eviction in pixel backend. */
> -   if (brw->gen >= 9) {
> +   if (brw->gen == 9) {
> +      /* Recommended optimizations for Victim Cache eviction and floating
> +       * point blending.
> +       */
>        BEGIN_BATCH(3);
>        OUT_BATCH(MI_LOAD_REGISTER_IMM | (3 - 2));
>        OUT_BATCH(GEN7_CACHE_MODE_1);
> 

Both patches are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170622/21b160f9/attachment.sig>


More information about the mesa-dev mailing list