swr: [rasterizer fetch] add support for 24bit format fetch
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 26 Jul 2016 18:32:14 +0000 (12:32 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 4 Aug 2016 19:38:34 +0000 (14:38 -0500)
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp

index 59ae43a..2c2d68e 100644 (file)
@@ -578,6 +578,7 @@ void FetchJit::CreateGatherOddFormats(SWR_FORMAT format, Value* pBase, Value* of
         {
         case 8: load = POINTER_CAST(load, Type::getInt8PtrTy(JM()->mContext)); break;
         case 16: load = POINTER_CAST(load, Type::getInt16PtrTy(JM()->mContext)); break;
+        case 24:
         case 32: load = POINTER_CAST(load, Type::getInt32PtrTy(JM()->mContext)); break;
         default: SWR_ASSERT(0);
         }