[Mesa-dev] [PATCH] i965: Label the repclear shader "repclear" rather than "meta clear".
Jason Ekstrand
jason at jlekstrand.net
Wed Apr 22 17:47:34 PDT 2015
Maybe meta repclear? Either way,
Reviewed-by: Jason Ekstrand <jason.ekstrand at intel.com>
On Wed, Apr 22, 2015 at 5:46 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Color clears can be performed via two separate shaders - one is the
> generic "meta clear" shader (in meta.c); the other is the i965 specific
> "repclear" shader (in brw_meta_fast_clear.c).
>
> Giving them separate names makes them distinguishable when reading
> INTEL_DEBUG=shader_time output.
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
> src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
> index 06916e2..498ea37 100644
> --- a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
> +++ b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
> @@ -128,7 +128,7 @@ brw_bind_rep_write_shader(struct brw_context *brw, float *color)
> _mesa_AttachShader(clear->shader_prog, vs);
> _mesa_DeleteShader(vs);
> _mesa_BindAttribLocation(clear->shader_prog, 0, "position");
> - _mesa_ObjectLabel(GL_PROGRAM, clear->shader_prog, -1, "meta clear");
> + _mesa_ObjectLabel(GL_PROGRAM, clear->shader_prog, -1, "repclear");
> _mesa_LinkProgram(clear->shader_prog);
>
> clear->color_location =
> --
> 2.3.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list