From 8563a95bd7f456c089c04781c035cd917be2fe9f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 22 Feb 2022 12:28:10 -0500 Subject: [PATCH] llvmpipe: remove weird clamping for format support with sample counts this breaks u_blitter Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/llvmpipe/lp_screen.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 51468be09cd..b8ab1a0ffde 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -682,9 +682,6 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen, if (sample_count != 0 && sample_count != 1 && sample_count != 4) return false; - if (MAX2(1, sample_count) != MAX2(1, storage_sample_count)) - return false; - if (bind & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_SHADER_IMAGE)) { if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) { /* this is a lie actually other formats COULD exist where we would fail */