diff options
author | Eric Anholt <[email protected]> | 2014-02-20 13:22:12 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-02-22 19:23:20 -0800 |
commit | 0e2c7e2f6ecfc2f5bf74e99955a175caa2f4515f (patch) | |
tree | 05159e7aa35320ba5f1db2497c1e0e7cade53c35 /src/mesa/drivers/common/meta.c | |
parent | 6152ba08945a5a0139dd47745962ef66be8b8a70 (diff) |
meta: Set some object labels on our meta shaders.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.c')
-rw-r--r-- | src/mesa/drivers/common/meta.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 2dec2c34eda..d415e610f9a 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -52,6 +52,7 @@ #include "main/matrix.h" #include "main/mipmap.h" #include "main/multisample.h" +#include "main/objectlabel.h" #include "main/pixel.h" #include "main/pbo.h" #include "main/polygon.h" @@ -178,6 +179,7 @@ _mesa_meta_setup_blit_shader(struct gl_context *ctx, GLuint vs, fs; void *const mem_ctx = ralloc_context(NULL); struct blit_shader *shader = choose_blit_shader(target, table); + char *name; assert(shader != NULL); @@ -253,6 +255,8 @@ _mesa_meta_setup_blit_shader(struct gl_context *ctx, _mesa_BindAttribLocation(shader->shader_prog, 0, "position"); _mesa_BindAttribLocation(shader->shader_prog, 1, "texcoords"); _mesa_meta_link_program_with_debug(ctx, shader->shader_prog); + name = ralloc_asprintf(mem_ctx, "%s blit", shader->type); + _mesa_ObjectLabel(GL_PROGRAM, shader->shader_prog, -1, name); ralloc_free(mem_ctx); _mesa_UseProgram(shader->shader_prog); @@ -1605,6 +1609,8 @@ meta_glsl_clear_init(struct gl_context *ctx, struct clear_state *clear) * BindFragDataLocation to 0. */ + _mesa_ObjectLabel(GL_PROGRAM, clear->IntegerShaderProg, -1, + "integer clear"); _mesa_meta_link_program_with_debug(ctx, clear->IntegerShaderProg); clear->IntegerColorLocation = |