[Mesa-dev] [PATCH mesa 08/12] i965: add missing case to fix -Wswitch

Eric Engestrom eric.engestrom at intel.com
Mon Oct 29 17:13:29 UTC 2018


Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
 src/mesa/drivers/dri/i965/intel_tiled_memcpy.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c b/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c
index 627a18027cd13ada959b..836f83d4a43a45e76b48 100644
--- a/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c
+++ b/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c
@@ -603,9 +603,10 @@ choose_copy_function(mem_copy_fn_type copy_type)
    case INTEL_COPY_STREAMING_LOAD:
       return _memcpy_streaming_load;
 #endif
-   default:
-      unreachable("unhandled copy_type");
+   case INTEL_COPY_INVALID:
+      unreachable("invalid copy_type");
    }
+   unreachable("unhandled copy_type");
    return NULL;
 }
 
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list