From 0722b6d693b0165e81c85ac8509f1d4c2f7ee87e Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 26 May 2017 11:27:22 +1000 Subject: [PATCH] i915g: remove some unknown cap warnings. --- src/gallium/drivers/i915/i915_screen.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index d7bd8102c71..2a8853908dc 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -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; -- 2.30.2