From f28bf4407d12f041bab33da9a56ace98de8c0f2f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 15 Aug 2022 10:18:59 +1000 Subject: [PATCH] nvk: add initial 8/16 byte clears. Part-of: --- src/nouveau/vulkan/nvk_cmd_copy.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/nouveau/vulkan/nvk_cmd_copy.c b/src/nouveau/vulkan/nvk_cmd_copy.c index ed1c226..7652c47 100644 --- a/src/nouveau/vulkan/nvk_cmd_copy.c +++ b/src/nouveau/vulkan/nvk_cmd_copy.c @@ -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"); } -- 2.7.4