[Mesa-dev] [PATCH 11/13] gallium: Add struct pipe_llvm_program v2

tstellar at gmail.com tstellar at gmail.com
Mon May 28 07:17:31 PDT 2012


From: Tom Stellard <thomas.stellard at amd.com>

This structure is used to pass LLVM programs to the drivers.

v2:
  - s/pipe_compute_program/pipe_llvm_program/
---
 src/gallium/include/pipe/p_state.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 51a956d..fd4129a 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -593,6 +593,15 @@ struct pipe_resolve_info
    unsigned mask; /**< PIPE_MASK_RGBA, Z, S or ZS */
 };
 
+/**
+ * Structure for passing LLVM programs the drivers.
+ */
+struct pipe_llvm_program
+{
+   uint32_t num_bytes; /**< Number of bytes pointed to by prog. */
+   unsigned char * prog; /**< LLVM bytecode */
+};
+
 struct pipe_compute_state
 {
    const void *prog; /**< Compute program to be executed. */
-- 
1.7.7.6



More information about the mesa-dev mailing list