From df1751a2bbd38b32f2d5673ba584fd72e371be62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= Date: Sat, 5 Feb 2022 07:47:44 +0100 Subject: [PATCH] crocus: Enable compat profile the same way as core profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zoltán Böszörményi Reviewed-by: Emma Anholt Part-of: --- src/gallium/drivers/crocus/ci/crocus-hsw-fails.txt | 7 +++++++ src/gallium/drivers/crocus/crocus_screen.c | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/crocus/ci/crocus-hsw-fails.txt b/src/gallium/drivers/crocus/ci/crocus-hsw-fails.txt index 99c4826ddb0..5eff6a9b50b 100644 --- a/src/gallium/drivers/crocus/ci/crocus-hsw-fails.txt +++ b/src/gallium/drivers/crocus/ci/crocus-hsw-fails.txt @@ -31,6 +31,9 @@ fast_color_clear@fcc-write-after-clear,Fail spec@!opengl 1.0@gl-1.0-swapbuffers-behavior,Fail +# Compat mode failure +spec@!opengl 1.0@rasterpos,Fail + spec@!opengl 1.1@linestipple,Fail spec@!opengl 1.1@linestipple@Factor 2x,Fail spec@!opengl 1.1@linestipple@Factor 3x,Fail @@ -159,6 +162,10 @@ spec@ext_transform_feedback@builtin-varyings gl_pointsize,Fail spec@glsl-1.50@execution@geometry@primitive-types gl_line_loop,Fail +# Compat mode failures +spec@glsl-1.50@execution@primitive-id-no-gs-quads,Fail +spec@glsl-1.50@execution@primitive-id-no-gs-quad-strip,Fail + spec@intel_performance_query@intel_performance_query-issue_2235,Fail spec@khr_texture_compression_astc@miptree-gl srgb-fp,Fail diff --git a/src/gallium/drivers/crocus/crocus_screen.c b/src/gallium/drivers/crocus/crocus_screen.c index 4a1e2cc9629..43f619b1509 100644 --- a/src/gallium/drivers/crocus/crocus_screen.c +++ b/src/gallium/drivers/crocus/crocus_screen.c @@ -282,6 +282,7 @@ crocus_get_param(struct pipe_screen *pscreen, enum pipe_cap param) return BRW_MAX_SOL_BINDINGS / CROCUS_MAX_SOL_BUFFERS; case PIPE_CAP_MAX_STREAM_OUTPUT_INTERLEAVED_COMPONENTS: return BRW_MAX_SOL_BINDINGS; + case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY: case PIPE_CAP_GLSL_FEATURE_LEVEL: { if (devinfo->verx10 >= 75) return 460; @@ -291,8 +292,6 @@ crocus_get_param(struct pipe_screen *pscreen, enum pipe_cap param) return 330; return 140; } - case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY: - return 140; case PIPE_CAP_CLIP_PLANES: if (devinfo->verx10 < 45) return 6;