mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-26 13:30:39 +01:00
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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14613>
This commit is contained in:
parent
f1f65e5bcf
commit
bb41d47f2e
1 changed files with 7 additions and 2 deletions
|
|
@ -3753,8 +3753,13 @@ to upconvert to 32b float internally?
|
|||
<bitfield name="LOD_BIAS" low="19" high="31" type="fixed" radix="8"/><!-- no idea how many bits for real -->
|
||||
</reg32>
|
||||
<reg32 offset="1" name="1">
|
||||
<!-- bit 0 always set with vulkan? -->
|
||||
<bitfield name="UNK0" pos="0" type="boolean"/>
|
||||
<bitfield name="CLAMPENABLE" pos="0" type="boolean">
|
||||
<doc>
|
||||
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.
|
||||
</doc>
|
||||
</bitfield>
|
||||
<bitfield name="COMPARE_FUNC" low="1" high="3" type="adreno_compare_func"/>
|
||||
<bitfield name="CUBEMAPSEAMLESSFILTOFF" pos="4" type="boolean"/>
|
||||
<bitfield name="UNNORM_COORDS" pos="5" type="boolean"/>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue