Mesa (master): gallium: Add struct pipe_llvm_program_header v3

Tom Stellard tstellar at kemper.freedesktop.org
Fri Jun 1 16:24:54 UTC 2012


Module: Mesa
Branch: master
Commit: f2606413ec176be33a6471bfc10443413d8b110a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f2606413ec176be33a6471bfc10443413d8b110a

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Fri May 25 08:20:06 2012 -0400

gallium: Add struct pipe_llvm_program_header v3

This structure is used as a header that precedes LLVM bytecode programs
that are passed to the drivers.

v2:
  - s/pipe_compute_program/pipe_llvm_program/

v3:
  - Rename to struct pipe_llvm_program_header
  - Drop the char * prog member

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

---

 src/gallium/include/pipe/p_state.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 51a956d..c828c80 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -593,6 +593,14 @@ struct pipe_resolve_info
    unsigned mask; /**< PIPE_MASK_RGBA, Z, S or ZS */
 };
 
+/**
+ * Structure used as a header for serialized LLVM programs.
+ */
+struct pipe_llvm_program_header
+{
+   uint32_t num_bytes; /**< Number of bytes in the LLVM bytecode program. */
+};
+
 struct pipe_compute_state
 {
    const void *prog; /**< Compute program to be executed. */




More information about the mesa-commit mailing list