Skip to content
Snippets Groups Projects
Commit 4a0304c5 authored by Faith Ekstrand's avatar Faith Ekstrand :speech_balloon: Committed by Eric Engestrom
Browse files

nvk: Support STORAGE_READ_WITHOUT_FORMAT on buffers

Fixes: fc191730 ("nvk: Rework format features queries")
Part-of: <mesa/mesa!30580>
(cherry picked from commit 8244b878)
parent fee95230
No related branches found
No related tags found
No related merge requests found
......@@ -2044,7 +2044,7 @@
"description": "nvk: Support STORAGE_READ_WITHOUT_FORMAT on buffers",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "fc191730145eb816d91b269d9e0b49cadbc212a7",
"notes": null
......@@ -13,6 +13,8 @@
#include "vk_format.h"
#include "clb097.h"
VkFormatFeatureFlags2
nvk_get_buffer_format_features(struct nvk_physical_device *pdev,
VkFormat vk_format)
......@@ -29,6 +31,8 @@ nvk_get_buffer_format_features(struct nvk_physical_device *pdev,
if (nil_format_supports_storage(&pdev->info, p_format)) {
features |= VK_FORMAT_FEATURE_2_STORAGE_TEXEL_BUFFER_BIT |
VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT;
if (pdev->info.cls_eng3d >= MAXWELL_A)
features |= VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT;
}
if (p_format == PIPE_FORMAT_R32_UINT || p_format == PIPE_FORMAT_R32_SINT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment