From 3b736acf1b707d3c6c6e6875400409f91ef9e1ac Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 19 Nov 2016 19:01:06 -0500 Subject: [PATCH] swr: [rasterizer memory] assert when trying to convert an unknown format Signed-off-by: Ilia Mirkin Reviewed-by: Tim Rowley --- src/gallium/drivers/swr/rasterizer/memory/Convert.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/swr/rasterizer/memory/Convert.h b/src/gallium/drivers/swr/rasterizer/memory/Convert.h index c31459c12f5..527324ca6cb 100644 --- a/src/gallium/drivers/swr/rasterizer/memory/Convert.h +++ b/src/gallium/drivers/swr/rasterizer/memory/Convert.h @@ -724,6 +724,7 @@ INLINE static void ConvertPixelFromFloat( case R8G8B8_SINT: ConvertPixelFromFloat(pDst, srcPixel); break; case RAW: ConvertPixelFromFloat(pDst, srcPixel); break; default: + SWR_ASSERT(0); break; } } -- 2.30.2