mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
mesa: Uniform logging is very, very unlikely
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
9cdf66657a
commit
8e4a6481e8
1 changed files with 2 additions and 2 deletions
|
|
@ -634,7 +634,7 @@ _mesa_uniform(struct gl_context *ctx, struct gl_shader_program *shProg,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->_Shader->Flags & GLSL_UNIFORMS) {
|
if (unlikely(ctx->_Shader->Flags & GLSL_UNIFORMS)) {
|
||||||
log_uniform(values, basicType, components, 1, count,
|
log_uniform(values, basicType, components, 1, count,
|
||||||
false, shProg, location, uni);
|
false, shProg, location, uni);
|
||||||
}
|
}
|
||||||
|
|
@ -846,7 +846,7 @@ _mesa_uniform_matrix(struct gl_context *ctx, struct gl_shader_program *shProg,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->_Shader->Flags & GLSL_UNIFORMS) {
|
if (unlikely(ctx->_Shader->Flags & GLSL_UNIFORMS)) {
|
||||||
log_uniform(values, GLSL_TYPE_FLOAT, components, vectors, count,
|
log_uniform(values, GLSL_TYPE_FLOAT, components, vectors, count,
|
||||||
bool(transpose), shProg, location, uni);
|
bool(transpose), shProg, location, uni);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue