mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 18:10:36 +02:00
nvk: Check before claiming UNIFORM_TEXEL_BUFFER_BIT
This is a no-op right now because NIL never claims buffer support on anything that can't support texturing. That will change in the next commit. Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Mary Guillemard <mary@mary.zone> Acked-by: Mel Henning <mhenning@darkrefraction.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39135>
This commit is contained in:
parent
5a917f035c
commit
26c50cb7ff
1 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,8 @@ nvk_get_buffer_format_features(const struct nvk_physical_device *pdev,
|
|||
|
||||
enum pipe_format p_format = nvk_format_to_pipe_format(vk_format);
|
||||
if (nil_format_supports_buffer(&pdev->info, p_format)) {
|
||||
features |= VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT;
|
||||
if (nil_format_supports_texturing(&pdev->info, p_format))
|
||||
features |= VK_FORMAT_FEATURE_2_UNIFORM_TEXEL_BUFFER_BIT;
|
||||
|
||||
if (nvk_format_supports_storage(pdev, p_format)) {
|
||||
features |= VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue