gallium: Add struct pipe_llvm_program_header v3
authorTom Stellard <thomas.stellard@amd.com>
Fri, 25 May 2012 12:20:06 +0000 (08:20 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 1 Jun 2012 15:28:10 +0000 (11:28 -0400)
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@riseup.net>
src/gallium/include/pipe/p_state.h

index 51a956d95329e2f705ee14345706ac6839eaff53..c828c806aef97dbfa71760d0b28986b8e0c1953f 100644 (file)
@@ -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. */