Mesa (master): r200: Reuse DRI_CONF_OPT_F for texture_blend_quality.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Oct 3 00:19:47 UTC 2020


Module: Mesa
Branch: master
Commit: 4a57384959382e3dedb65c294ed2992709f009a9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a57384959382e3dedb65c294ed2992709f009a9

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Sep 25 15:35:16 2020 -0700

r200: Reuse DRI_CONF_OPT_F for texture_blend_quality.

I missed this one in the nested macros conversion.

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

---

 src/mesa/drivers/dri/radeon/radeon_screen.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c
index 7ed656055bd..3d41c1efdce 100644
--- a/src/mesa/drivers/dri/radeon/radeon_screen.c
+++ b/src/mesa/drivers/dri/radeon/radeon_screen.c
@@ -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
 };



More information about the mesa-commit mailing list