gallium: add PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS
authorMarek Olšák <marek.olsak@amd.com>
Tue, 26 Sep 2017 13:56:15 +0000 (15:56 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 6 Oct 2017 00:56:11 +0000 (02:56 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@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 553b8e661a4fdd70569701ca995236dd406a3fa7..b968b8c57333ca0d9ae740a3ca42cb219d7f2367 100644 (file)
@@ -406,6 +406,8 @@ The integer capabilities:
 * ``PIPE_CAP_MEMOBJ``: Whether operations on memory objects are supported.
 * ``PIPE_CAP_LOAD_CONSTBUF``: True if the driver supports TGSI_OPCODE_LOAD use
   with constant buffers.
+* ``PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS``: Any TGSI register can be used as
+  an address for indirect register indexing.
 
 
 .. _pipe_capf:
index ffc23c77726dc5e59f50dfdb2a9528291aad5a58..13258bf3534da60059fd8675fb19262731a8963f 100644 (file)
@@ -264,6 +264,7 @@ etna_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_QUERY_SO_OVERFLOW:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
 
    /* Stream output. */
index e8d84f477664384642601ee77b15b9392499b212..341221f9e31ea0a4860ef5ae53bb33c8c1251095 100644 (file)
@@ -325,6 +325,7 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
        case PIPE_CAP_QUERY_SO_OVERFLOW:
        case PIPE_CAP_MEMOBJ:
        case PIPE_CAP_LOAD_CONSTBUF:
+       case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
                return 0;
 
        case PIPE_CAP_MAX_VIEWPORTS:
index 88e66ba684175cf2ab747edb1d16ea98e2b0e9f9..6d74bbfd1629a0ad373d818b78a6987f4d4933ba 100644 (file)
@@ -317,6 +317,7 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_QUERY_SO_OVERFLOW:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
 
    case PIPE_CAP_MAX_VIEWPORTS:
index ab2ba3a19a8bbeaf9bbf5c683c9730349ec03c25..64826575b3d61cbf9140fe51b287dcfde93cc608 100644 (file)
@@ -360,6 +360,7 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_NIR_SAMPLERS_AS_DEREF:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
    }
    /* should only get here on unhandled cases */
index a66b4fbe67b08f201eec548bb4e0de7dd8cb8af4..0450bbb0f1c02e645a205a9412b8e28de34d808a 100644 (file)
@@ -224,6 +224,7 @@ nv30_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_QUERY_SO_OVERFLOW:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index 479283e1b7cc57e70b06b4b7e90e31005b7dff69..b08e5e58d2835f64c69a1d68c7dd6479140c42e5 100644 (file)
@@ -276,6 +276,7 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_QUERY_SO_OVERFLOW:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index ac850c493dafffedf2c51f5e1db501f6a3ea9766..3bead857ed4663e620519ec4f39bb936d32545be 100644 (file)
@@ -305,6 +305,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_QUERY_SO_OVERFLOW:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index 894c0d996b1a69b244e59925ebe07714c6e1504a..dc37ab2a5388f1fb787b07c85ee99b98f31a6aad 100644 (file)
@@ -246,6 +246,7 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_QUERY_SO_OVERFLOW:
         case PIPE_CAP_MEMOBJ:
         case PIPE_CAP_LOAD_CONSTBUF:
+        case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
             return 0;
 
         /* SWTCL-only features. */
index 655b5411ed5e5a1db0ea4d5f6a278d296dbfe979..de87874b565145071eeff3ad58b528193d5f16aa 100644 (file)
@@ -402,6 +402,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_QUERY_SO_OVERFLOW:
        case PIPE_CAP_MEMOBJ:
        case PIPE_CAP_LOAD_CONSTBUF:
+       case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
                return 0;
 
        case PIPE_CAP_DOUBLES:
index 33f5adbd3ad96ebeed204be3a51b2710af4a6382..bc8f6d6158243d082e7ced1e51e2ff7f51b80bee 100644 (file)
@@ -577,6 +577,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_UMA:
        case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE:
        case PIPE_CAP_POST_DEPTH_COVERAGE:
+       case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
                return 0;
 
        case PIPE_CAP_QUERY_BUFFER_OBJECT:
index 93fc76054caab621b20c183b809a73982c3547d1..b1010a6cd564ac9f9c9ec72b9c9fadbfbddc72eb 100644 (file)
@@ -311,6 +311,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_NIR_SAMPLERS_AS_DEREF:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
    case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT:
       return 4;
index 7901e819de4299f57f670d6243cc2288ea3aa88c..fd9f78b2fc6bf9038ecd11f2eec9106d49c9f41d 100644 (file)
@@ -456,6 +456,7 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_QUERY_SO_OVERFLOW:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
    }
 
index df23e354f48effc8df78056b85eb4a18c0870780..eeb10a9a4d42623f7dfe66247cad208c10b4b642 100644 (file)
@@ -342,6 +342,7 @@ swr_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_QUERY_SO_OVERFLOW:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index b39cc744e6f66358589c6c6f6a6933f529fb8649..1f587732d2044c777b75746ef70a8e5bf5b4fb3d 100644 (file)
@@ -265,6 +265,7 @@ vc4_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
         case PIPE_CAP_QUERY_SO_OVERFLOW:
        case PIPE_CAP_MEMOBJ:
         case PIPE_CAP_LOAD_CONSTBUF:
+       case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
                 return 0;
 
                 /* Stream output. */
index ecdd4758120792e3800b4f58ed8b03fa225542dd..e9139cea655dbef1ad0ae44f3ac39f4ff11218a6 100644 (file)
@@ -269,6 +269,7 @@ virgl_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_QUERY_SO_OVERFLOW:
    case PIPE_CAP_MEMOBJ:
    case PIPE_CAP_LOAD_CONSTBUF:
+   case PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS:
       return 0;
    case PIPE_CAP_VENDOR_ID:
       return 0x1af4;
index 155d0e3979c3c677b0c60a44e61939557579bd29..212c4af8f707251a854ab9ae4211c47f70eec339 100644 (file)
@@ -777,6 +777,7 @@ enum pipe_cap
    PIPE_CAP_QUERY_SO_OVERFLOW,
    PIPE_CAP_MEMOBJ,
    PIPE_CAP_LOAD_CONSTBUF,
+   PIPE_CAP_TGSI_ANY_REG_AS_ADDRESS,
 };
 
 #define PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_NV50 (1 << 0)