Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sparse texture (& buffer?) support? #1700

Open
oscarbg opened this issue Aug 25, 2022 · 5 comments
Open

Sparse texture (& buffer?) support? #1700

oscarbg opened this issue Aug 25, 2022 · 5 comments

Comments

@oscarbg
Copy link

oscarbg commented Aug 25, 2022

Hi,

would like to make an updated call for sparse texture support in MoltenVK..
seems all I can find about sparse tex support is from a issue three years ago (#631)..
a SPIRV-Cross issue was opened: KhronosGroup/SPIRV-Cross#1014
but no real progress since then..
sparse texture now is available also on MacOS also seems from Metal 2.3 (at least for M1 Macs).. also on A15 and M2 additional sparse stencil and depth format support.. don't know on Macos on AMD GPUs..
at least this is info from this Metal sparse sample:
https://developer.apple.com/documentation/metal/metal_sample_code_library/streaming_large_images_with_metal_sparse_textures
I have seen also new:
#define HAVE_SPARSE_SAMPLE_COMPARE_GRADIENTCUBE_OVERLOAD 1
vs last time 3 years ago in metal shader compiler headers..
finally seems no sparse buffer support (you can create sparse MLTHeaps from which create MTLTexture's but not MTLBuffer's ?) see: https://developer.apple.com/documentation/metal/textures/creating_sparse_heaps_and_sparse_textures)..
hope somebody fills a bug with Apple for sparse buffer support..
similarly don't know if sparse 3D textures are supported..
@billhollings @cdavis5e @spnda do you know about current Metal sparse support? (sparse buffers, sparse 3D textures, supported on AMD GPUs on Macos?)
thanks..

@cdavis5e
Copy link
Collaborator

Part of the problem is that Metal doesn't let you place sparse tiles at specific locations inside of sparse heaps, whereas Vulkan and D3D12 do.

@oscarbg
Copy link
Author

oscarbg commented Aug 26, 2022

thanks for the insight..
so does basically avoid an "easy" implementation of sparse texture support on MoltenVK, right now?
in that case has this limitation been pointed to Apple devs (filed a ticket on Apple bug tracker)?

@Wangsh09
Copy link

Wangsh09 commented Jun 8, 2023

any update on this?

@oscarbg
Copy link
Author

oscarbg commented Jun 16, 2023

Curious how game porting toolkit enables support for this (and also execute indirect funtionality).. new related features on Metal 3.1?..

@K0bin
Copy link

K0bin commented Jun 16, 2023

@oscarbg It doesn't. A bunch of games don't work because of the limited sparse support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants