From 14555d0b7a51bd3701764fd213c2459410143431 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B3zef=20Kucia?= Date: Mon, 2 Oct 2017 19:58:51 +0200 Subject: [PATCH] anv: Remove unreachable cases from isl_format_for_size() The dstOffset and fillSize parameters must be multiple of 4. Reviewed-by: Lionel Landwerlin Cc: "17.1 17.2" --- src/intel/vulkan/anv_blorp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index a8ebdb384c3..8dead1d87a8 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -531,8 +531,6 @@ static enum isl_format 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_R32_UINT; case 8: return ISL_FORMAT_R32G32_UINT; case 16: return ISL_FORMAT_R32G32B32A32_UINT; -- 2.30.2