gallium: set PIPE_CAP_MAX_FRAMES_IN_FLIGHT to 2 for all drivers
authorMarek Olšák <marek.olsak@amd.com>
Wed, 24 Apr 2019 01:23:22 +0000 (21:23 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 24 Apr 2019 14:41:04 +0000 (10:41 -0400)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/auxiliary/util/u_screen.c
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/i915/i915_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_get.c
src/gallium/drivers/svga/svga_screen.c

index dffd0436cb098fdeb2ab9b85e614d936cd73dadb..384e0ac5db66fb2f52df195eaf630cfac96ac18e 100644 (file)
@@ -352,9 +352,11 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
       return 0;
 
    case PIPE_CAP_COMPUTE_SHADER_DERIVATIVES:
-   case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
       return 0;
 
+   case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
+      return 2;
+
    case PIPE_CAP_DMABUF:
 #ifdef PIPE_OS_LINUX
       return 1;
index 38a459e73aae8cd31376f98b8864e205b36b7ac5..fdf2639071807d08bc88c6336410f3a7d553e318 100644 (file)
@@ -380,9 +380,6 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
                /* only a4xx, requires new enough kernel so we know max_freq: */
                return (screen->max_freq > 0) && (is_a4xx(screen) || is_a5xx(screen) || is_a6xx(screen));
 
-       case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
-               return 2;
-
        case PIPE_CAP_VENDOR_ID:
                return 0x5143;
        case PIPE_CAP_DEVICE_ID:
index 62ff5f89198e72c3811f02e05bf793f309a8bcd6..78707c66e624d9c09c6c34934f1007d5e47131f2 100644 (file)
@@ -341,9 +341,6 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_PROGRAMMABLE_SAMPLE_LOCATIONS:
       return 0;
 
-   case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
-      return 2;
-
    case PIPE_CAP_MAX_GS_INVOCATIONS:
       return 32;
 
index e6e7fac2a44af31e8dfae46a0b360fbe8d923312..b5dc033bd2d43a34fd8e7ae3651a7cd0a3b11bcf 100644 (file)
@@ -249,9 +249,6 @@ nv30_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_IMAGE_LOAD_FORMATTED:
       return 0;
 
-   case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
-      return 2;
-
    case PIPE_CAP_MAX_GS_INVOCATIONS:
       return 32;
    case PIPE_CAP_MAX_SHADER_BUFFER_SIZE:
index c439f507c1d9d38ddc38a22be56a9c950575dfad..423b6af3b64bbfaec1239e181cd9352f84de6379 100644 (file)
@@ -321,9 +321,6 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_IMAGE_LOAD_FORMATTED:
       return 0;
 
-   case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
-      return 2;
-
    case PIPE_CAP_VENDOR_ID:
       return 0x10de;
    case PIPE_CAP_DEVICE_ID: {
index 930da324794da1b4eaa000a2a86565a51eefc910..79224ac99a75aa958c325d824a2d347d1be9e051 100644 (file)
@@ -355,9 +355,6 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_IMAGE_LOAD_FORMATTED:
       return 0;
 
-   case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
-      return 2;
-
    case PIPE_CAP_VENDOR_ID:
       return 0x10de;
    case PIPE_CAP_DEVICE_ID: {
index 6b77d18843312936f357883952984825d0071883..be0b475e5efc987f5c39a4ff1c9cb904d4ac15ff 100644 (file)
@@ -307,9 +307,6 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_MAX_VARYINGS:
             return 10;
 
-        case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
-            return 2;
-
         case PIPE_CAP_VENDOR_ID:
                 return 0x1002;
         case PIPE_CAP_DEVICE_ID:
index 9cef7c79cbd723d76b7cc65a6149782b88fbfea0..41a878ab9d249615adbdc2b16e73504a2a09ac09 100644 (file)
@@ -398,9 +398,6 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_MAX_COMBINED_SHADER_BUFFERS:
                return 8;
 
-       case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
-               return 2;
-
        /* Unsupported features. */
        case PIPE_CAP_TGSI_FS_COORD_ORIGIN_LOWER_LEFT:
        case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_INTEGER:
index a6d558a735f25d6bdcaa1511db18d46454c56307..eddb383c2707f7344b1972da74dc306b4b1dbde1 100644 (file)
@@ -306,9 +306,6 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
        case PIPE_CAP_ENDIANNESS:
                return PIPE_ENDIAN_LITTLE;
 
-       case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
-               return 2;
-
        case PIPE_CAP_VENDOR_ID:
                return ATI_VENDOR_ID;
        case PIPE_CAP_DEVICE_ID:
index ceaf388c7db7d7a6c91b10ae37e262d2b4a28177..6cb5a14f5b0b5e630b2b92968e1b00deecc916ff 100644 (file)
@@ -479,8 +479,6 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_PACKED_UNIFORMS:
    case PIPE_CAP_PROGRAMMABLE_SAMPLE_LOCATIONS:
       return 0;
-   case PIPE_CAP_MAX_FRAMES_IN_FLIGHT:
-      return 2;
    case PIPE_CAP_MAX_GS_INVOCATIONS:
       return 32;
    case PIPE_CAP_MAX_SHADER_BUFFER_SIZE: