nvk: add initial 8/16 byte clears.
authorDave Airlie <airlied@redhat.com>
Mon, 15 Aug 2022 00:18:59 +0000 (10:18 +1000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:57 +0000 (21:31 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_cmd_copy.c

index ed1c226..7652c47 100644 (file)
@@ -446,6 +446,14 @@ nvk_CmdClearColorImage(VkCommandBuffer commandBuffer,
       P_IMMD(push, NV902D, SET_DST_FORMAT, V_A8B8G8R8);
       P_IMMD(push, NV902D, SET_RENDER_SOLID_PRIM_COLOR_FORMAT, V_A8B8G8R8);
       break;
+   case 8:
+      P_IMMD(push, NV902D, SET_DST_FORMAT, V_RF16_GF16_BF16_AF16);
+      P_IMMD(push, NV902D, SET_RENDER_SOLID_PRIM_COLOR_FORMAT, V_RF16_GF16_BF16_AF16);
+      break;
+   case 16:
+      P_IMMD(push, NV902D, SET_DST_FORMAT, V_RF32_GF32_BF32_AF32);
+      P_IMMD(push, NV902D, SET_RENDER_SOLID_PRIM_COLOR_FORMAT, V_RF32_GF32_BF32_AF32);
+      break;
    default:
       unreachable("TODO: More formats in CmdClearColorImage");
    }