summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2021-10-04 16:19:29 -0400
committerMarge Bot <eric+marge@anholt.net>2021-10-13 16:36:27 +0000
commitea038747df019a1a4175e665c2b624858fc60e63 (patch)
treeb7e21edff77ad5c64e3840fdd9f594eaa6043769 /src/mesa/drivers
parentb01fe97a39cfca67d01ddcd632ff2bcd794e62c9 (diff)
dri: Remove the allow_fp16_configs option, always allow them
There's no danger of accidentally using these, the default pixel format is integer and if you want float you need to have explicitly asked for it in eglChooseConfig. Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13182>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_screen.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_screen.c b/src/mesa/drivers/dri/i965/brw_screen.c
index 9e00819b338..b8e44f4b412 100644
--- a/src/mesa/drivers/dri/i965/brw_screen.c
+++ b/src/mesa/drivers/dri/i965/brw_screen.c
@@ -98,7 +98,6 @@ static const driOptionDescription brw_driconf[] = {
DRI_CONF_VS_POSITION_ALWAYS_PRECISE(false)
DRI_CONF_ALLOW_RGB10_CONFIGS(false)
DRI_CONF_ALLOW_RGB565_CONFIGS(true)
- DRI_CONF_ALLOW_FP16_CONFIGS(false)
DRI_CONF_SECTION_END
};
@@ -2184,9 +2183,7 @@ brw_allowed_format(__DRIscreen *dri_screen, mesa_format format)
return false;
/* Shall we expose fp16 formats? */
- bool allow_fp16_configs = driQueryOptionb(&screen->optionCache,
- "allow_fp16_configs");
- allow_fp16_configs &= brw_loader_get_cap(dri_screen, DRI_LOADER_CAP_FP16);
+ bool allow_fp16_configs = brw_loader_get_cap(dri_screen, DRI_LOADER_CAP_FP16);
if (!allow_fp16_configs &&
(format == MESA_FORMAT_RGBA_FLOAT16 ||
format == MESA_FORMAT_RGBX_FLOAT16))