r200: Reuse DRI_CONF_OPT_F for texture_blend_quality.
authorEric Anholt <eric@anholt.net>
Fri, 25 Sep 2020 22:35:16 +0000 (15:35 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 2 Oct 2020 23:59:52 +0000 (23:59 +0000)
I missed this one in the nested macros conversion.

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6916>

src/mesa/drivers/dri/radeon/radeon_screen.c

index 7ed6560..3d41c1e 100644 (file)
@@ -116,11 +116,6 @@ DRI_CONF_END
 
 #elif defined(RADEON_R200)
 
-#define DRI_CONF_TEXTURE_BLEND_QUALITY(def,range) \
-DRI_CONF_OPT_BEGIN_V(texture_blend_quality,float,def,range) \
-       DRI_CONF_DESC("Texture filtering quality vs. speed, AKA “brilinear” texture filtering") \
-DRI_CONF_OPT_END
-
 static const __DRIconfigOptionsExtension radeon_config_options = {
    .base = { __DRI_CONFIG_OPTIONS, 1 },
    .xml =
@@ -139,7 +134,8 @@ DRI_CONF_BEGIN
         DRI_CONF_COLOR_REDUCTION(DRI_CONF_COLOR_REDUCTION_DITHER)
         DRI_CONF_ROUND_MODE(DRI_CONF_ROUND_TRUNC)
         DRI_CONF_DITHER_MODE(DRI_CONF_DITHER_XERRORDIFF)
-        DRI_CONF_TEXTURE_BLEND_QUALITY(1.0,"0.0:1.0")
+        DRI_CONF_OPT_F(texture_blend_quality, 1.0, 0.0, 1.0,
+                       "Texture filtering quality vs. speed, AKA “brilinear” texture filtering")
     DRI_CONF_SECTION_END
 DRI_CONF_END
 };