swr: [rasterizer memory] assert when trying to convert an unknown format
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 20 Nov 2016 00:01:06 +0000 (19:01 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 1 Dec 2016 01:35:16 +0000 (20:35 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/memory/Convert.h

index c31459c12f56ff1e7c8090236ec34f7ab8612b37..527324ca6cbc53b9011111203a57779e70215a22 100644 (file)
@@ -724,6 +724,7 @@ INLINE static void ConvertPixelFromFloat(
     case R8G8B8_SINT: ConvertPixelFromFloat<R8G8B8_SINT>(pDst, srcPixel); break;
     case RAW: ConvertPixelFromFloat<RAW>(pDst, srcPixel); break;
     default:
+        SWR_ASSERT(0);
         break;
     }
 }