From bb41d47f2e7273d460e4822eda0170f7d3bd6423 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 18 Jan 2022 18:46:49 +0100 Subject: [PATCH] freedreno/a6xx: Name texture descriptor bit This appears to do the same thing as CLAMPENABLE on a3xx. That is, it clamps the result to [0, 1] for unorm formats and [-1, 1] for snorm formats *after* filtering. In particular it's now more easily observable with cubic filtering, because cubic filtering can produce values outside the original range. Presumably this only matters with linear filtering due to rounding errors when computing the weighted average. Part-of: --- src/freedreno/registers/adreno/a6xx.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/freedreno/registers/adreno/a6xx.xml b/src/freedreno/registers/adreno/a6xx.xml index 567eb46385c..c9e1b77d43c 100644 --- a/src/freedreno/registers/adreno/a6xx.xml +++ b/src/freedreno/registers/adreno/a6xx.xml @@ -3753,8 +3753,13 @@ to upconvert to 32b float internally? - - + + + clamp result to [0, 1] if the format is unorm or + [-1, 1] if the format is snorm, *after* + filtering. Has no effect for other formats. + +