nvk: Allow R32_UINT
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:48 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:54 +0000 (21:31 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_format.c
src/nouveau/vulkan/nvk_format.h

index f840478..c2fdf5d 100644 (file)
@@ -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,
+   },
 };
index 0659fe9..4abebe8 100644 (file)
@@ -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