[Mesa-dev] [PATCH 2/3] radv/winsys: Move a 'default:' to the end of case stmt

Edward O'Callaghan funfunctor at folklore1984.net
Tue Oct 11 09:04:48 UTC 2016


Shift this down and maintain the exact same behaviour as the
current code.

Signed-off-by: Edward O'Callaghan <funfunctor at folklore1984.net>
---
 src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
index 7319a98..3f41778 100644
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c
@@ -242,10 +242,11 @@ static unsigned radv_eg_tile_split_rev(unsigned eg_tile_split)
 	case 128:   return 1;
 	case 256:   return 2;
 	case 512:   return 3;
-	default:
 	case 1024:  return 4;
 	case 2048:  return 5;
 	case 4096:  return 6;
+	default:
+		return 4;
 	}
 }
 
-- 
2.7.4



More information about the mesa-dev mailing list