i965: Label the repclear shader "meta repclear" rather than "meta clear".
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 23 Apr 2015 00:46:08 +0000 (17:46 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 11 Jul 2015 02:10:19 +0000 (19:10 -0700)
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.

v2: Call it "meta repclear", as suggested by Jason.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_meta_fast_clear.c

index 5b8191c093b8db4fc098b395bec9d4752b384876..c5e556ee9eb923d21c7c75eadbff288d9f9b2b3b 100644 (file)
@@ -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, "meta repclear");
    _mesa_LinkProgram(clear->shader_prog);
 
    clear->color_location =