gallium: add PIPE_CAP_TGSI CLOCK
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 29 Mar 2017 18:44:57 +0000 (20:44 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 31 Mar 2017 05:56:25 +0000 (07:56 +0200)
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
17 files changed:
src/gallium/docs/source/screen.rst
src/gallium/drivers/etnaviv/etnaviv_screen.c
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/nouveau/nv30/nv30_screen.c
src/gallium/drivers/nouveau/nv50/nv50_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/softpipe/sp_screen.c
src/gallium/drivers/svga/svga_screen.c
src/gallium/drivers/swr/swr_screen.cpp
src/gallium/drivers/vc4/vc4_screen.c
src/gallium/drivers/virgl/virgl_screen.c
src/gallium/include/pipe/p_defines.h

index 00c9503f55f03a68d994637591cbe8e8f5ae0da9..947b843b799f4c15b0eafeb1acab4bcae10ced01 100644 (file)
@@ -376,6 +376,7 @@ The integer capabilities:
   operations are supported.
 * ``PIPE_CAP_TGSI_TEX_TXF_LZ``: Whether TEX_LZ and TXF_LZ opcodes are
   supported.
+* ``PIPE_CAP_TGSI_CLOCK``: Whether the CLOCK opcode is supported.
 
 
 .. _pipe_capf:
index ed7fb64f67473adbf0eac173f5326deedca8e985..11053c6461cf1294aa4208a1a4677291281947ce 100644 (file)
@@ -245,6 +245,7 @@ etna_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_INT64:
    case PIPE_CAP_INT64_DIVMOD:
    case PIPE_CAP_TGSI_TEX_TXF_LZ:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
 
    /* Stream output. */
index 5657de592769edb2a48cd63d377a1f17e8de0d0c..2eaedc0dcac59db2d3fe119ee0e3e9dbc1642a05 100644 (file)
@@ -302,6 +302,7 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
        case PIPE_CAP_INT64:
        case PIPE_CAP_INT64_DIVMOD:
        case PIPE_CAP_TGSI_TEX_TXF_LZ:
+       case PIPE_CAP_TGSI_CLOCK:
                return 0;
 
        case PIPE_CAP_MAX_VIEWPORTS:
index d25c2b3d82cc89a731568403bd453b284bb84176..703c49a0fa194bf74f616b517e0a081b6d7c5b4c 100644 (file)
@@ -303,6 +303,7 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_INT64:
    case PIPE_CAP_INT64_DIVMOD:
    case PIPE_CAP_TGSI_TEX_TXF_LZ:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
 
    case PIPE_CAP_MAX_VIEWPORTS:
index f6ac9b65bcf6125262eb7273f6f768fe4c9bbd48..0b399dd57b0099b9c6aa80973e43e937e9d13c95 100644 (file)
@@ -347,6 +347,7 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY:
    case PIPE_CAP_TGSI_FS_FBFETCH:
    case PIPE_CAP_TGSI_MUL_ZERO_WINS:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
    }
    /* should only get here on unhandled cases */
index 5c7ae24d7f10ef516db524336b0987994c8a02b7..ec8444da5cba14beec23673f834d4e35caa36def 100644 (file)
@@ -211,6 +211,7 @@ nv30_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_INT64:
    case PIPE_CAP_INT64_DIVMOD:
    case PIPE_CAP_TGSI_TEX_TXF_LZ:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index 249947ada042b8bfd6c4a679cb90b2d07d1ac02e..452016c9e21831052ab6f3a38f46fe996f4fc85e 100644 (file)
@@ -263,6 +263,7 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_DOUBLES:
    case PIPE_CAP_INT64:
    case PIPE_CAP_INT64_DIVMOD:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index cfe4f677daa3c2ef7b7aa8f441e16c1e25b86dbd..ab94d9c4e4ab3d39eae115d35ad4831bf859fa38 100644 (file)
@@ -285,6 +285,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_NATIVE_FENCE_FD:
    case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY:
    case PIPE_CAP_INT64_DIVMOD:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index 752cf823cc59391752d4c68e77258dd4a2d70267..54a56d3b3e61dfffb3e984b49c4be0739750041d 100644 (file)
@@ -233,6 +233,7 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_INT64:
         case PIPE_CAP_INT64_DIVMOD:
         case PIPE_CAP_TGSI_TEX_TXF_LZ:
+        case PIPE_CAP_TGSI_CLOCK:
             return 0;
 
         /* SWTCL-only features. */
index 869f941be4a7c73fc0e8a00c12dc79b7708aedcf..c536712d93f802ae889c6585a510f44bbadb6576 100644 (file)
@@ -381,6 +381,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_INT64:
        case PIPE_CAP_INT64_DIVMOD:
        case PIPE_CAP_TGSI_TEX_TXF_LZ:
+       case PIPE_CAP_TGSI_CLOCK:
                return 0;
 
        case PIPE_CAP_DOUBLES:
index dde8b1b4c39ed111069b81c0fcd34650591da92f..29887e43e1be822514040d7be375a7a6940e4d5a 100644 (file)
@@ -485,6 +485,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_TGSI_FS_FBFETCH:
        case PIPE_CAP_TGSI_MUL_ZERO_WINS:
        case PIPE_CAP_UMA:
+       case PIPE_CAP_TGSI_CLOCK:
                return 0;
 
        case PIPE_CAP_QUERY_BUFFER_OBJECT:
index 703fd0b126d10346fca7cb87ee4bd9c0dd83b2c0..5d64839110b1f5979f98adefb1ded523a0967218 100644 (file)
@@ -297,6 +297,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY:
    case PIPE_CAP_TGSI_FS_FBFETCH:
    case PIPE_CAP_TGSI_MUL_ZERO_WINS:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
    case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT:
       return 4;
index cb48ac531677a559eb28b5f6bac5a3cc0f0f213e..3a0990ebd7b52a0609e36c0dc0a1d7ba0917a548 100644 (file)
@@ -427,6 +427,7 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_INT64:
    case PIPE_CAP_INT64_DIVMOD:
    case PIPE_CAP_TGSI_TEX_TXF_LZ:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
    }
 
index 5d18f7cde4880454a4607288cce9cd2f2e5eba88..d218b679b5920712e09baee7a869aadd93a80719 100644 (file)
@@ -319,6 +319,7 @@ swr_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_INT64:
    case PIPE_CAP_INT64_DIVMOD:
    case PIPE_CAP_TGSI_TEX_TXF_LZ:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index 46229a757262860c467eceb91dcf2c13811047ce..39f4ffd019a68d7bc752b3ea907c2975b71f7f6e 100644 (file)
@@ -247,6 +247,7 @@ vc4_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
         case PIPE_CAP_INT64:
         case PIPE_CAP_INT64_DIVMOD:
         case PIPE_CAP_TGSI_TEX_TXF_LZ:
+        case PIPE_CAP_TGSI_CLOCK:
                 return 0;
 
                 /* Stream output. */
index eb6b1256cbef5e173698cb53ddf89220a51ed672..a9c2543437a531480281a9cb9f94a370cd83688f 100644 (file)
@@ -256,6 +256,7 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_INT64:
    case PIPE_CAP_INT64_DIVMOD:
    case PIPE_CAP_TGSI_TEX_TXF_LZ:
+   case PIPE_CAP_TGSI_CLOCK:
       return 0;
    case PIPE_CAP_VENDOR_ID:
       return 0x1af4;
index 924711d4dd3b8101ade3361c0d6c9832148e2d84..fc2fb7fddbb7a8794d8b215be93ec77901e23d23 100644 (file)
@@ -755,6 +755,7 @@ enum pipe_cap
    PIPE_CAP_INT64,
    PIPE_CAP_INT64_DIVMOD,
    PIPE_CAP_TGSI_TEX_TXF_LZ,
+   PIPE_CAP_TGSI_CLOCK,
 };
 
 #define PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_NV50 (1 << 0)