summaryrefslogtreecommitdiff
path: root/intel
diff options
context:
space:
mode:
Diffstat (limited to 'intel')
-rw-r--r--intel/test_decode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/intel/test_decode.c b/intel/test_decode.c
index d7025f03..93f47efc 100644
--- a/intel/test_decode.c
+++ b/intel/test_decode.c
@@ -91,7 +91,10 @@ compare_batch(struct drm_intel_decode *ctx, const char *batch_filename)
{
FILE *out = NULL;
void *ptr, *ref_ptr, *batch_ptr;
- size_t size, ref_size, batch_size;
+#ifdef HAVE_OPEN_MEMSTREAM
+ size_t size;
+#endif
+ size_t ref_size, batch_size;
const char *ref_suffix = "-ref.txt";
char *ref_filename;