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@riseup.net>
This commit is contained in:
Tom Stellard
2014-09-25 09:14:53 -04:00
parent dc39b32c9b
commit 8b7cc90cef
2 changed files with 4 additions and 3 deletions

View File

@@ -320,8 +320,8 @@ pipe_screen::get_compute_param.
* ``PIPE_COMPUTE_CAP_IR_TARGET``: A description of the target of the form * ``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. ``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 This CAP is only relevant for drivers that specify PIPE_SHADER_IR_LLVM
their preferred IR. or PIPE_SHADER_IR_NATIVE for their preferred IR.
Value type: null-terminated string. Value type: null-terminated string.
* ``PIPE_COMPUTE_CAP_GRID_DIMENSION``: Number of supported dimensions * ``PIPE_COMPUTE_CAP_GRID_DIMENSION``: Number of supported dimensions
for grid and block coordinates. Value type: ``uint64_t``. for grid and block coordinates. Value type: ``uint64_t``.

View File

@@ -638,7 +638,8 @@ enum pipe_shader_cap
enum pipe_shader_ir enum pipe_shader_ir
{ {
PIPE_SHADER_IR_TGSI, PIPE_SHADER_IR_TGSI,
PIPE_SHADER_IR_LLVM PIPE_SHADER_IR_LLVM,
PIPE_SHADER_IR_NATIVE
}; };
/** /**