summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ddebug
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-07-30 23:54:06 +0200
committerMarek Olšák <[email protected]>2016-08-03 17:46:46 +0200
commit840353059a35453e8a960673474e8a37d6f1a97a (patch)
tree93929cbf7de38cff31fe6ab9ddc0e11b11c95f51 /src/gallium/drivers/ddebug
parentc88b309fd5ad77c3fce64993285ebd9eada33d0e (diff)
ddebug: don't use fmemopen on non-Linux OS
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97140 Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ddebug')
-rw-r--r--src/gallium/drivers/ddebug/dd_draw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/ddebug/dd_draw.c b/src/gallium/drivers/ddebug/dd_draw.c
index d3c4e7f5e9c..517e525f03a 100644
--- a/src/gallium/drivers/ddebug/dd_draw.c
+++ b/src/gallium/drivers/ddebug/dd_draw.c
@@ -930,6 +930,7 @@ PIPE_THREAD_ROUTINE(dd_thread_pipelined_hang_detect, input)
static char *
dd_get_driver_shader_log(struct dd_context *dctx)
{
+#if defined(PIPE_OS_LINUX)
FILE *f;
char *buf;
int written_bytes;
@@ -966,6 +967,10 @@ dd_get_driver_shader_log(struct dd_context *dctx)
}
return buf;
+#else
+ /* Return an empty string. */
+ return (char*)calloc(1, 4);
+#endif
}
static void