From: Józef Kucia Date: Mon, 2 Oct 2017 17:58:50 +0000 (+0200) Subject: anv: Fix vkCmdFillBuffer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15fdbf9c39105aaaae05c59a1a315b1775ac5d79;p=mesa.git anv: Fix vkCmdFillBuffer() The vkCmdFillBuffer() command fills a buffer with an uint32_t value. Reviewed-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Cc: "17.1 17.2" --- diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 8d0c2752485..a8ebdb384c3 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -533,8 +533,8 @@ isl_format_for_size(unsigned size_B) switch (size_B) { case 1: return ISL_FORMAT_R8_UINT; case 2: return ISL_FORMAT_R8G8_UINT; - case 4: return ISL_FORMAT_R8G8B8A8_UINT; - case 8: return ISL_FORMAT_R16G16B16A16_UINT; + case 4: return ISL_FORMAT_R32_UINT; + case 8: return ISL_FORMAT_R32G32_UINT; case 16: return ISL_FORMAT_R32G32B32A32_UINT; default: unreachable("Not a power-of-two format size");