Incorrect matrices for VK_QCOM_filter_cubic_weights
@mnetsch ci sta già lavorando.
Dal 16/3/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
The matrix for Zero Tangent Cardinal weights at https://docs.vulkan.org/spec/latest/chapters/textures.html#textures-texel-cubic-filtering is incorrect.
It is given as:
[ 0 2 0 0]
[-2 0 2 0]
[ 4 -4 2 -2]
[-2 2 -2 1]
But the following Python code which calculates the weights at α=0 and α=1:
import numpy as np
M = np.array([[0, 2, 0, 0], [-2, 0, 2, 0], [4, -4, 2, -2], [-2, 2, -2, 1]])
a = 0
print(0.5 * np.array([1, a, a**2, a**3]) @ M)
a = 1
print(0.5 * np.array([1, a, a**2, a**3]) @ M)
gives
[0. 1. 0. 0.]
[0. 0. 1. -0.5]
which shows that there is a discontinuity in the interpolation... the second value should instead be [0. 0. 1. 0.].
In practice this means that with a conformant implementation, sampling from a texture with a solid colour C would not produce a constant result, but rather one varying between C/2 and C, which is undesired for texture filtering.
From implementing cubic filtering myself (using multiple texture fetches instead of the extension), and trying different possibilities, I think that the correct matrix might be this:
[ 0 2 0 0]
[-2 0 2 0]
[ 4 -4 2 -2]
[-2 2 -2 2]
I do not know whether shipping drivers/hardware uses incorrect weights, or if the problem is only in the documentation, since I only have X1-85 (so A7xx) Adreno hardware, and it seems that configurable cubic filtering weights were introduced with A8xx.
- Lingua principale
- JavaScript
- Stelle
- 3.4k
- Fork
- 555
- Merge medio
- 3g 10h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di KhronosGroup/Vulkan-Docs
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
KhronosGroup/Vulkan-Docs#2823 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 44/100
KhronosGroup/Vulkan-Docs#2863 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
KhronosGroup/Vulkan-Docs#2861 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
KhronosGroup/Vulkan-Docs#2860 · 1 commento ·
-
VUID-vkCmdBindResourceHeapEXT-pBindInfo-12558Forse già presa @spencer-lunarg l’ha presa 2 giorni fa. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
KhronosGroup/Vulkan-Docs#2857 · 4 commenti · 1 assegnatario ·
Tutte le issue di KhronosGroup/Vulkan-Docs
Issue simili
-
[ordering-review] workshop order graph: 1 confirmed ordering issue, cycles are false positivesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
githubnext/gh-aw-workshop#6247 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue type/ci
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
c-w-z/commit-decision-record#20 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: China en Vivo (CN)Apertachannels:add check:passed
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
web-platform-tests/wpt#65844 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
JuliusBrussee/caveman#1606 ·
I maintainer di solito rispondono entro 1 giorno