gallium: Add PIPE_SHADER_IR_NATIVE to enum pipe_shader_ir
authorTom Stellard <thomas.stellard@amd.com>
Thu, 25 Sep 2014 13:14:53 +0000 (09:14 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 16 Oct 2014 23:42:22 +0000 (19:42 -0400)
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@riseup.net>
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h

index f4e9204004cc6cbe80c47502a36b6287194caddc..ba34ec8297abb80533d37415731b151f730ef9d4 100644 (file)
@@ -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``.
index 93156b952bd1f60385b9317d558faab76f5f975f..d9b1547b1e2521ec45549d734717a0c093919e07 100644 (file)
@@ -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
 };
 
 /**