mesa: remove _mesa_get_log_file() wrapper
There is no need for this wrapper. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30012>
This commit is contained in:
committed by
Marge Bot
parent
0441c69527
commit
6c4e03024c
@@ -66,18 +66,6 @@ output_if_debug(enum mesa_log_level level, const char *outputString)
|
||||
mesa_log(level, "Mesa", "%s", outputString);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the file handle to use for debug/logging. Defaults to stderr
|
||||
* unless MESA_LOG_FILE is defined.
|
||||
*/
|
||||
FILE *
|
||||
_mesa_get_log_file(void)
|
||||
{
|
||||
return mesa_log_get_file();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* When a new type of error is recorded, print a message describing
|
||||
* previous errors which were accumulated.
|
||||
|
||||
@@ -70,9 +70,6 @@ extern void
|
||||
_mesa_log_direct(const char *string);
|
||||
|
||||
|
||||
extern FILE *
|
||||
_mesa_get_log_file(void);
|
||||
|
||||
void
|
||||
_mesa_shader_debug(struct gl_context *ctx, GLenum type, GLuint *id,
|
||||
const char *msg);
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
#include "util/crc32.h"
|
||||
#include "util/os_file.h"
|
||||
#include "util/list.h"
|
||||
#include "util/log.h"
|
||||
#include "util/perf/cpu_trace.h"
|
||||
#include "util/u_process.h"
|
||||
#include "util/u_string.h"
|
||||
@@ -1241,7 +1242,7 @@ _mesa_compile_shader(struct gl_context *ctx, struct gl_shader *sh)
|
||||
if (sh->CompileStatus) {
|
||||
if (sh->ir) {
|
||||
_mesa_log("GLSL IR for shader %d:\n", sh->Name);
|
||||
_mesa_print_ir(_mesa_get_log_file(), sh->ir, NULL);
|
||||
_mesa_print_ir(mesa_log_get_file(), sh->ir, NULL);
|
||||
} else {
|
||||
_mesa_log("No GLSL IR for shader %d (shader may be from "
|
||||
"cache)\n", sh->Name);
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
#include "compiler/glsl/shader_cache.h"
|
||||
#include "compiler/glsl/string_to_uint_map.h"
|
||||
|
||||
#include "util/log.h"
|
||||
|
||||
static int
|
||||
type_size(const struct glsl_type *type)
|
||||
{
|
||||
@@ -395,7 +397,7 @@ st_glsl_to_nir_post_opts(struct st_context *st, struct gl_program *prog,
|
||||
_mesa_log("NIR IR for linked %s program %d:\n",
|
||||
_mesa_shader_stage_to_string(prog->info.stage),
|
||||
shader_program->Name);
|
||||
nir_print_shader(nir, _mesa_get_log_file());
|
||||
nir_print_shader(nir, mesa_log_get_file());
|
||||
_mesa_log("\n\n");
|
||||
}
|
||||
|
||||
@@ -537,7 +539,7 @@ st_link_glsl_to_nir(struct gl_context *ctx,
|
||||
_mesa_log("GLSL IR for linked %s program %d:\n",
|
||||
_mesa_shader_stage_to_string(shader->Stage),
|
||||
shader_program->Name);
|
||||
_mesa_print_ir(_mesa_get_log_file(), shader->ir, NULL);
|
||||
_mesa_print_ir(mesa_log_get_file(), shader->ir, NULL);
|
||||
_mesa_log("\n\n");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user