Revert "lima: make fp16 render-targets opt-in with driconf"

This is no longer needed, due to the previous commit.

This reverts commit 1617778c38.

Backport-to: 25.1
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36156>
This commit is contained in:
Erik Faye-Lund 2025-07-16 08:37:56 +02:00 committed by Marge Bot
parent c7bc454dbd
commit 0178a4bd9d
5 changed files with 4 additions and 23 deletions

View file

@ -57,14 +57,6 @@ These are some display drivers that have been tested with Lima:
- Tiny DRM: ``tinydrm``
- Xilinx ZynqMP: ``zynqmp-dpsub``
DRIconf variables
-----------------
``lima_allow_fp16_rts``
Expose support for FP16 render-targets. This has the side-effect of
dropping support for 4xMSAA, which unfortunately can't be supported
at the same time due to API and hardware restrictions.
Environment variables
---------------------

View file

@ -44,6 +44,7 @@ dEQP-GLES2.functional.texture.mipmap.cube.projected.linear_nearest,Fail
wayland-dEQP-EGL.functional.create_context.no_config,Fail
wayland-dEQP-EGL.functional.image.modify.renderbuffer_depth16_renderbuffer_clear_depth,Fail
wayland-dEQP-EGL.functional.wide_color.window_fp16_default_colorspace,Fail
wayland-dEQP-EGL.functional.wide_color.window_8888_colorspace_srgb,Fail
wayland-dEQP-EGL.functional.wide_color.window_888_colorspace_srgb,Fail

View file

@ -1,4 +1 @@
/* lima specific driconf options */
DRI_CONF_SECTION_MISCELLANEOUS
DRI_CONF_OPT_B(lima_allow_fp16_rts, false, "Allow using FP16 render-targets")
DRI_CONF_SECTION_END

View file

@ -246,14 +246,9 @@ lima_screen_is_format_supported(struct pipe_screen *pscreen,
if (!lima_format_pixel_supported(format))
return false;
if (util_format_is_float(format)) {
if (!lima_screen(pscreen)->allow_fp16_rts)
return false;
/* multisample unsupported with half float target */
if (sample_count > 1)
return false;
}
/* multisample unsupported with half float target */
if (sample_count > 1 && util_format_is_float(format))
return false;
}
if (usage & PIPE_BIND_DEPTH_STENCIL) {
@ -586,9 +581,6 @@ lima_screen_create(int fd, const struct pipe_screen_config *config,
driParseConfigFiles(config->options, config->options_info, 0,
"lima", NULL, NULL, NULL, 0, NULL, 0);
screen->allow_fp16_rts = driQueryOptionb(config->options,
"lima_allow_fp16_rts");
if (!lima_screen_query_info(screen))
goto err_out0;

View file

@ -95,7 +95,6 @@ struct lima_screen {
#define pp_buffer_size 0x1000
bool has_growable_heap_buffer;
bool allow_fp16_rts;
struct disk_cache *disk_cache;
};