Draft: gpu: add support for pl_tex_params.mipmaps
I'm not very happy with this approach for three reasons:
- Our mipmap generation code is terrible (needs gamma correction, needs better handling of npot2 textures)
- Currently no real way to actually use mipmaps
- Actually caching mipmaps between frames (as would be the goal for perf) is too costly in terms of API, and is basically impossible to do zerocopy unless we also patch all of ffmpeg to generate mipmaps
- It might make more sense to just generate low-res intermediate textures on demand, if needed to anti-alias to extreme ratios (basically turning normal downscalers into cascading downscalers)
In conclusion, I think this feature is probably dead on arrival. Still, it was interesting while it lasted.
Edited by Niklas Haas
Merge request reports
Activity
Filter activity
added 23 commits
-
fcc3a827...e6846192 - 20 commits from branch
videolan:master
- 6a7fbdf7 - gpu: add support for pl_tex_params.mipmaps
- b2cc7c6a - vulkan: add support for mipmaps
- da99ba1d - tests/gpu_tests: add mipmap test
Toggle commit list-
fcc3a827...e6846192 - 20 commits from branch
Abandoning this for now, see #276 (closed) for justification.
Please register or sign in to reply