gallium/compute: Add PIPE_COMPUTE_CAP_IR_TARGET v4
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 23 Mar 2012 00:40:40 +0000 (01:40 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 1 Jun 2012 15:27:53 +0000 (11:27 -0400)
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 <currojerez@riseup.net>
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h

index 17adf4deb81482510f120362b6dd83fcf0e9caaf..c86e1c6e7fcba2ec6f485c9745f55fca600ea8d6 100644 (file)
@@ -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
index d0819e28a6151cc63ae384586e458c4b44d4d49d..585cab2e93433ff751a2c63ad7be062f489ed391 100644 (file)
@@ -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,