gallium: Add integer 64 capability
authorDave Airlie <airlied@redhat.com>
Thu, 9 Jun 2016 00:13:03 +0000 (10:13 +1000)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 27 Jan 2017 09:19:25 +0000 (10:19 +0100)
v1.1: move to using a normal CAP. (Marek)

v2: fill in the cap everywhere

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
17 files changed:
src/gallium/drivers/etnaviv/etnaviv_screen.c
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/i915/i915_screen.c
src/gallium/drivers/ilo/ilo_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 66c530d20bcc6596902838fb7bc916abbc2b3f41..c045f7e072169f867056e7aaeff3266bc4e75ac7 100644 (file)
@@ -241,6 +241,7 @@ etna_screen_get_param(struct pipe_screen *pscreen, 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_INT64:
       return 0;
 
    /* Stream output. */
index a1c026c26f57e677f87b8c868e6f9b4323dd12b1..abb878708a1e5ea1e63f5612d21ef5b8905aeaa6 100644 (file)
@@ -298,6 +298,7 @@ fd_screen_get_param(struct pipe_screen *pscreen, 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_INT64:
                return 0;
 
        case PIPE_CAP_MAX_VIEWPORTS:
index 78898736d93b1a8f2fd97e4cca521ce7c912ada2..07d1488f215165450e55ec1e94fcf2d3932f8aff 100644 (file)
@@ -299,6 +299,7 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY:
    case PIPE_CAP_TGSI_FS_FBFETCH:
    case PIPE_CAP_TGSI_MUL_ZERO_WINS:
+   case PIPE_CAP_INT64:
       return 0;
 
    case PIPE_CAP_MAX_VIEWPORTS:
index 6018cd1e6c4e1ae478f1047c70acbcfe5cb3b531..960fd71999e8a08de033698b58a428faed3b1494 100644 (file)
@@ -522,6 +522,7 @@ ilo_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_INT64:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index 89a1dc868e322079f90af7a40b188c782d8c9c19..6ef22b83035c4f71d0663aedb5dbee8b7a7392f0 100644 (file)
@@ -343,6 +343,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_INT64:
       return 0;
    }
    /* should only get here on unhandled cases */
index b6c263660f4998c5da55e1fec0a36045b45af3ba..2451e012e5f8c05c855fd2fde5688a7a63178871 100644 (file)
@@ -208,6 +208,7 @@ nv30_screen_get_param(struct pipe_screen *pscreen, 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_INT64:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index d09b41ab3da945e1af3ac1577246c5a31e57c198..cab0ce60293dc25e4f4a5b414a4f581078602876 100644 (file)
@@ -260,6 +260,7 @@ nv50_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_TGSI_FS_FBFETCH:
+   case PIPE_CAP_INT64:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index 47a6e6f89d941ae0fee96008d415afdc77cd9ef8..83885991819c8813f2dcd34c2b10d86355565864 100644 (file)
@@ -280,6 +280,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_TGSI_CAN_READ_OUTPUTS:
    case PIPE_CAP_NATIVE_FENCE_FD:
    case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY:
+   case PIPE_CAP_INT64:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index e5e7535358f81a3d5c56dc769f3477cebbecc7ff..3e927e89a74b0c058f63100de5049ea9b219cc56 100644 (file)
@@ -230,6 +230,7 @@ static int r300_get_param(struct pipe_screen* pscreen, 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_INT64:
             return 0;
 
         /* SWTCL-only features. */
index 98ceebf37d53cef39e9fbd0f6df8b00bbf81a0ba..7e58feaeb44052d8621d2d117075961d5100ebf7 100644 (file)
@@ -379,6 +379,7 @@ static int r600_get_param(struct pipe_screen* pscreen, 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_INT64:
                return 0;
 
        case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS:
index b41e5dafabef4812a22f130691305d5645ac9f48..9f3cd054303bec078c19be6a5b668021c90c4a3f 100644 (file)
@@ -466,6 +466,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_NATIVE_FENCE_FD:
        case PIPE_CAP_TGSI_FS_FBFETCH:
        case PIPE_CAP_TGSI_MUL_ZERO_WINS:
+       case PIPE_CAP_INT64:
                return 0;
 
        case PIPE_CAP_QUERY_BUFFER_OBJECT:
index 9bc8d10e8e5d1a9bfdf165ffc784b1351342d045..f5216b08cc54825dfcb03b1587e748d4f798a814 100644 (file)
@@ -293,6 +293,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_INT64:
       return 0;
    case PIPE_CAP_SHADER_BUFFER_OFFSET_ALIGNMENT:
       return 4;
index 8d67f09b517a63ed75125147e3f49d8d7590f05b..85b3b63bea74effd8c76f34424ba54023f01f110 100644 (file)
@@ -424,6 +424,7 @@ svga_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_INT64:
       return 0;
    }
 
index e4fbbaa91daa575d750fd8bc164fc8e9fef050f1..52c60493cd9f2b0c5a9f029fd525868a2e0ff196 100644 (file)
@@ -317,6 +317,7 @@ swr_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_INT64:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index f8da1e2a26381d0fc186ebd89c5759800f66c853..bf219824b14cbc4bd15dfce1f08a7650d8743917 100644 (file)
@@ -244,6 +244,7 @@ vc4_screen_get_param(struct pipe_screen *pscreen, 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_INT64:
                 return 0;
 
                 /* Stream output. */
index 4515f5e9ce472d3239654dfbe6ae10681e897869..39df5f689d4f2aa2614a18a692aec85670754df2 100644 (file)
@@ -254,6 +254,7 @@ virgl_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_INT64:
       return 0;
    case PIPE_CAP_VENDOR_ID:
       return 0x1af4;
index 89aa093e1e6826e7b4143b9735e0c624890efd30..ff497bcd912ec225a97589fa05d0ff0b2cc12134 100644 (file)
@@ -752,6 +752,7 @@ enum pipe_cap
    PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY,
    PIPE_CAP_TGSI_FS_FBFETCH,
    PIPE_CAP_TGSI_MUL_ZERO_WINS,
+   PIPE_CAP_INT64,
 };
 
 #define PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_NV50 (1 << 0)