[Mesa-dev] [PATCH 2/4] graw: provide static inline draw_create_with_llvm_context()

Emil Velikov emil.l.velikov at gmail.com
Mon Jan 16 16:25:42 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

Analogous to previous commit.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/gallium/auxiliary/draw/draw_context.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/auxiliary/draw/draw_context.h b/src/gallium/auxiliary/draw/draw_context.h
index 145fc2ed46..d6b85e20cf 100644
--- a/src/gallium/auxiliary/draw/draw_context.h
+++ b/src/gallium/auxiliary/draw/draw_context.h
@@ -68,6 +68,10 @@ struct draw_context *draw_create( struct pipe_context *pipe );
 #if HAVE_LLVM
 struct draw_context *draw_create_with_llvm_context(struct pipe_context *pipe,
                                                    void *context);
+#else
+static inline struct draw_context *
+draw_create_with_llvm_context(struct pipe_context *pipe,
+                              void *context) { return NULL; }
 #endif
 
 struct draw_context *draw_create_no_llvm(struct pipe_context *pipe);
-- 
2.11.0



More information about the mesa-dev mailing list