From 460a026d72a63b29a53ed4f55ae9127d4cf64f5c Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:11:48 -0600 Subject: [PATCH] nvk: Allow R32_UINT Part-of: --- src/nouveau/vulkan/nvk_format.c | 6 ++++++ src/nouveau/vulkan/nvk_format.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nouveau/vulkan/nvk_format.c b/src/nouveau/vulkan/nvk_format.c index f840478..c2fdf5d 100644 --- a/src/nouveau/vulkan/nvk_format.c +++ b/src/nouveau/vulkan/nvk_format.c @@ -2,6 +2,7 @@ #include "nvtypes.h" #include "classes/cl902d.h" +#include "classes/cl90c0.h" /* * nvidia names @@ -157,4 +158,9 @@ struct nvk_format nvk_formats[NVK_FORMATS] = { .hw_format = NV902D_SET_SRC_FORMAT_V_RF32_GF32_BF32_AF32, .supports_2d_blit = true, }, + { + .vk_format = VK_FORMAT_R32_UINT, + .hw_format = NV90C0_SET_SU_LD_ST_TARGET_FORMAT_COLOR_RU32, + .supports_2d_blit = false, + }, }; diff --git a/src/nouveau/vulkan/nvk_format.h b/src/nouveau/vulkan/nvk_format.h index 0659fe9..4abebe8 100644 --- a/src/nouveau/vulkan/nvk_format.h +++ b/src/nouveau/vulkan/nvk_format.h @@ -10,7 +10,7 @@ struct nvk_format { bool supports_2d_blit:1; }; -#define NVK_FORMATS 27 +#define NVK_FORMATS 28 extern struct nvk_format nvk_formats[NVK_FORMATS]; #endif -- 2.7.4