summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/standalone_scaffolding.cpp
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-03-03 10:00:14 -0600
committerJason Ekstrand <[email protected]>2019-03-06 17:24:57 +0000
commit82d9a37a59c94ba3678b33acb9f2749cbbd7bfcc (patch)
treedea010697e00ab3e9db880e325ea6f5a3ed9a5a8 /src/compiler/glsl/standalone_scaffolding.cpp
parent8993e0973f7d0cfb211e0c39de82ef2497584df3 (diff)
glsl/nir: Add a shared helper for building float64 shaders
Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/standalone_scaffolding.cpp')
-rw-r--r--src/compiler/glsl/standalone_scaffolding.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/compiler/glsl/standalone_scaffolding.cpp b/src/compiler/glsl/standalone_scaffolding.cpp
index ec5f28ae40c..b80054a4707 100644
--- a/src/compiler/glsl/standalone_scaffolding.cpp
+++ b/src/compiler/glsl/standalone_scaffolding.cpp
@@ -55,6 +55,24 @@ _mesa_warning(struct gl_context *ctx, const char *fmt, ...)
}
void
+_mesa_problem(struct gl_context *ctx, const char *fmt, ...)
+{
+ va_list vargs;
+ (void) ctx;
+
+ va_start(vargs, fmt);
+
+ /* This output is not thread-safe, but that's good enough for the
+ * standalone compiler.
+ */
+ fprintf(stderr, "Mesa problem: ");
+ vfprintf(stderr, fmt, vargs);
+ fprintf(stderr, "\n");
+
+ va_end(vargs);
+}
+
+void
_mesa_reference_shader_program_data(struct gl_context *ctx,
struct gl_shader_program_data **ptr,
struct gl_shader_program_data *data)