From: Józef Kucia Date: Mon, 2 Oct 2017 17:58:51 +0000 (+0200) Subject: anv: Remove unreachable cases from isl_format_for_size() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14555d0b7a51bd3701764fd213c2459410143431;p=mesa.git 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" --- 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;