diff options
author | Francisco Jerez <[email protected]> | 2012-03-23 01:40:40 +0100 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-06-01 11:27:53 -0400 |
commit | c4c51153bc33541acd997b56f52a55e606ff3931 (patch) | |
tree | 2b7207ee04900ecc1259c0fd7105fcfaf0729913 /src | |
parent | 1d118a2a76345063db026b4b4d6cf0df1e341094 (diff) |
gallium/compute: Add PIPE_COMPUTE_CAP_IR_TARGET v4
v2: Tom Stellard
- Update CAP description
v3: Tom Stellard
- TGSI targets should pass an empty string for this CAP.
v4: Tom Stellard
- TGSI targets can ignore this CAP.
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/docs/source/screen.rst | 5 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index 17adf4deb81..c86e1c6e7fc 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -212,6 +212,11 @@ PIPE_COMPUTE_CAP_* Compute-specific capabilities. They can be queried using pipe_screen::get_compute_param. +* ``PIPE_COMPUTE_CAP_IR_TARGET``: A description of the target as a target + triple specification of the form ``processor-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. + Value type: null-terminated string. * ``PIPE_COMPUTE_CAP_GRID_DIMENSION``: Number of supported dimensions for grid and block coordinates. Value type: ``uint64_t``. * ``PIPE_COMPUTE_CAP_MAX_GRID_SIZE``: Maximum grid size in block diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index d0819e28a61..585cab2e934 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -546,6 +546,7 @@ enum pipe_shader_ir */ enum pipe_compute_cap { + PIPE_COMPUTE_CAP_IR_TARGET, PIPE_COMPUTE_CAP_GRID_DIMENSION, PIPE_COMPUTE_CAP_MAX_GRID_SIZE, PIPE_COMPUTE_CAP_MAX_BLOCK_SIZE, |