Mesa (master): gallium: Add PIPE_SHADER_IR_NATIVE to enum pipe_shader_ir

Tom Stellard tstellar at kemper.freedesktop.org
Fri Oct 17 00:46:16 UTC 2014


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

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Thu Sep 25 09:14:53 2014 -0400

gallium: Add PIPE_SHADER_IR_NATIVE to enum pipe_shader_ir

Drivers can return this value for PIPE_COMPUTE_CAP_IR_TARGET
if they want clover to give them native object code.

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

---

 src/gallium/docs/source/screen.rst   |    4 ++--
 src/gallium/include/pipe/p_defines.h |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst
index f4e9204..ba34ec8 100644
--- a/src/gallium/docs/source/screen.rst
+++ b/src/gallium/docs/source/screen.rst
@@ -320,8 +320,8 @@ pipe_screen::get_compute_param.
 
 * ``PIPE_COMPUTE_CAP_IR_TARGET``: A description of the target of the form
   ``processor-arch-manufacturer-os`` that will be passed on to the compiler.
-  This CAP is only relevant for drivers that specify PIPE_SHADER_IR_LLVM for
-  their preferred IR.
+  This CAP is only relevant for drivers that specify PIPE_SHADER_IR_LLVM
+  or PIPE_SHADER_IR_NATIVE for their preferred IR.
   Value type: null-terminated string.
 * ``PIPE_COMPUTE_CAP_GRID_DIMENSION``: Number of supported dimensions
   for grid and block coordinates.  Value type: ``uint64_t``.
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 93156b9..d9b1547 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -638,7 +638,8 @@ enum pipe_shader_cap
 enum pipe_shader_ir
 {
    PIPE_SHADER_IR_TGSI,
-   PIPE_SHADER_IR_LLVM
+   PIPE_SHADER_IR_LLVM,
+   PIPE_SHADER_IR_NATIVE
 };
 
 /**




More information about the mesa-commit mailing list