[Mesa-dev] [PATCH] i965: don't copy VS attribute work arounds for HSW+

Kenneth Graunke kenneth at whitecape.org
Wed Jul 6 03:38:51 UTC 2016


On Wednesday, July 6, 2016 12:41:02 PM PDT Timothy Arceri wrote:
> These workarounds are not required for HSW and above so stop
> copying them at VS key generation which is called at draw time.
> ---
>  src/mesa/drivers/dri/i965/brw_vs.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
> index 280e625..8f3c7eb 100644
> --- a/src/mesa/drivers/dri/i965/brw_vs.c
> +++ b/src/mesa/drivers/dri/i965/brw_vs.c
> @@ -350,8 +350,10 @@ brw_vs_populate_key(struct brw_context *brw,
>     brw_populate_sampler_prog_key_data(ctx, prog, &key->tex);
>  
>     /* BRW_NEW_VS_ATTRIB_WORKAROUNDS */
> -   memcpy(key->gl_attrib_wa_flags, brw->vb.attrib_wa_flags,
> -          sizeof(brw->vb.attrib_wa_flags));
> +   if (brw->gen < 8 && !brw->is_haswell) {
> +      memcpy(key->gl_attrib_wa_flags, brw->vb.attrib_wa_flags,
> +             sizeof(brw->vb.attrib_wa_flags));
> +   }
>  }
>  
>  void

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


More information about the mesa-dev mailing list