From 15fdbf9c39105aaaae05c59a1a315b1775ac5d79 Mon Sep 17 00:00:00 2001 From: Józef Kucia Date: Mon, 2 Oct 2017 19:58:50 +0200 Subject: 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" --- src/intel/vulkan/anv_blorp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- cgit v1.2.3