mesa/src/asahi
Alyssa Rosenzweig 826649ba19 asahi, agx: Implement dummy samplers
In NIR, texelFetch (txf) does not use a sampler, but in AGX, it does -- even
though the contents of the sampler are semantically irrelevant. Rather than
requiring the state tracker to bind a sampler anyway (indicated for texture
buffers with PIPE_CAP_TEXTURE_BUFFER_SAMPLER), just add a dummy sampler
ourselves if txf is used and there are otherwise no samplers. This is helpful
because PIPE_CAP_TEXTURE_BUFFER_SAMPLER isn't honoured by Rusticl or seemingly
mesa/st's PBO code, and after implementing this dummy sampler workaround in
Panfrost for Rusticl, I realized this CAP is silly and shouldn't exist in the
first place. (And I regret pushing for its reinclusion.)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21672>
2023-03-11 02:26:31 +00:00
..
compiler asahi, agx: Implement dummy samplers 2023-03-11 02:26:31 +00:00
drm-shim asahi: Clang-format the subtree 2022-12-27 22:46:29 +00:00
layout meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
lib meson: inline gtest_test_protocol now that it's always 'gtest' 2023-03-10 07:20:29 +00:00
.clang-format asahi: Add .clang-format file 2022-12-27 22:46:29 +00:00
meson.build asahi: Add drm-shim implementation 2022-11-07 16:10:11 +00:00