i915g: remove some unknown cap warnings.
authorDave Airlie <airlied@redhat.com>
Fri, 26 May 2017 01:27:22 +0000 (11:27 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 3 Nov 2017 05:03:30 +0000 (15:03 +1000)
src/gallium/drivers/i915/i915_screen.c

index d7bd8102c7199861d41ee59f0045c77900fb496f..2a8853908dc103def990ba2d1b83fe98e2845948 100644 (file)
@@ -168,6 +168,11 @@ i915_get_shader_param(struct pipe_screen *screen,
       case PIPE_SHADER_CAP_TGSI_LDEXP_SUPPORTED:
       case PIPE_SHADER_CAP_TGSI_FMA_SUPPORTED:
       case PIPE_SHADER_CAP_TGSI_ANY_INOUT_DECL_RANGE:
+      case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
+      case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
+      case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD:
+      case PIPE_SHADER_CAP_PREFERRED_IR:
+      case PIPE_SHADER_CAP_TGSI_SKIP_MERGE_REGISTERS:
          return 0;
       case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT:
          return 32;
@@ -399,6 +404,9 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_UMA:
       return 1;
 
+   case PIPE_CAP_COMPUTE:
+   case PIPE_CAP_QUERY_BUFFER_OBJECT:
+      return 0;
    default:
       debug_printf("%s: Unknown cap %u.\n", __FUNCTION__, cap);
       return 0;