Module: Mesa
Branch: master
Commit: 14555d0b7a51bd3701764fd213c2459410143431
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=14555d0b7a51bd3701764fd213c2459410143431

Author: Józef Kucia <[email protected]>
Date:   Mon Oct  2 19:58:51 2017 +0200

anv: Remove unreachable cases from isl_format_for_size()

The dstOffset and fillSize parameters must be multiple of 4.

Reviewed-by: Lionel Landwerlin <[email protected]
Reviewed-by: Jason Ekstrand <[email protected]>
Cc: "17.1 17.2" <[email protected]>

---

 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 a8ebdb384c..8dead1d87a 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;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to