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 dffd043..384e0ac 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 38a459e..fdf2639 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 62ff5f8..78707c6 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 e6e7fac..b5dc033 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 c439f50..423b6af 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 930da32..79224ac 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 6b77d18..be0b475 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 9cef7c7..41a878a 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 a6d558a..eddb383 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 ceaf388..6cb5a14 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: