[Mesa-dev] [PATCH 2/2] intel: Use the GLSL-based meta clear when available.

Ian Romanick idr at freedesktop.org
Tue Jul 19 13:48:05 PDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/18/2011 09:33 AM, Eric Anholt wrote:
> Improves glxgears performance 19.6% +/- 7.3% (second fps printout.
> n=5).

glxgearsisnotabenchmark.  Is there *any* other number that could be
quoted here?  This *will* bite you later. :)

> ---
>  src/mesa/drivers/dri/intel/intel_clear.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/intel/intel_clear.c b/src/mesa/drivers/dri/intel/intel_clear.c
> index dfca03c..35a9948 100644
> --- a/src/mesa/drivers/dri/intel/intel_clear.c
> +++ b/src/mesa/drivers/dri/intel/intel_clear.c
> @@ -182,7 +182,10 @@ intelClear(struct gl_context *ctx, GLbitfield mask)
>  
>     if (tri_mask) {
>        debug_mask("tri", tri_mask);
> -      _mesa_meta_Clear(&intel->ctx, tri_mask);
> +      if (ctx->Extensions.ARB_fragment_shader)
> +	 _mesa_meta_glsl_Clear(&intel->ctx, tri_mask);
> +      else
> +	 _mesa_meta_Clear(&intel->ctx, tri_mask);
>     }
>  }
>  

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk4l7YUACgkQX1gOwKyEAw/bKwCeJyteAfI5yzn5rqB1x61qvHAs
R9AAoIphxDQikt4veXCrwHLXUSOydPPv
=6rl/
-----END PGP SIGNATURE-----


More information about the mesa-dev mailing list