swr: [rasterizer] remove use of FLOAT type
authorTim Rowley <timothy.o.rowley@intel.com>
Mon, 7 Mar 2016 16:51:56 +0000 (10:51 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 25 Mar 2016 19:43:14 +0000 (14:43 -0500)
src/gallium/drivers/swr/rasterizer/common/os.h
src/gallium/drivers/swr/rasterizer/core/api.h
src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp

index 140d61293225e278cfb574b523fbb86ed3c26990..6c44d7b625c6c5ec47eeca8edfa098ba95a7637e 100644 (file)
@@ -81,7 +81,6 @@ typedef int                           INT;
 typedef unsigned int   UINT;
 typedef uint64_t               UINT64;
 typedef void*                  HANDLE;
-typedef float                  FLOAT;
 typedef int                        LONG;
 typedef unsigned char   UCHAR;
 typedef unsigned int   DWORD;
index 9c046776bb802d45e306672433958e094d3cf2e8..14ec0f98e7d227cc7616fd8dd284b04d873b02cf 100644 (file)
@@ -425,7 +425,7 @@ void SWR_API SwrStoreTiles(
 void SWR_API SwrClearRenderTarget(
     HANDLE hContext,
     uint32_t clearMask,
-    const FLOAT clearColor[4],
+    const float clearColor[4],
     float z,
     BYTE stencil);
 
index ad73cd840a7f4f33776c81bb08c907b7a3b13b34..0306f796e574018ff1cc3a3738bc986ad61df58b 100644 (file)
@@ -33,7 +33,7 @@
 #include "memory/tilingtraits.h"
 #include "memory/Convert.h"
 
-typedef void(*PFN_STORE_TILES_CLEAR)(const FLOAT*, SWR_SURFACE_STATE*, UINT, UINT);
+typedef void(*PFN_STORE_TILES_CLEAR)(const float*, SWR_SURFACE_STATE*, UINT, UINT);
 
 //////////////////////////////////////////////////////////////////////////
 /// Clear Raster Tile Function Tables.
@@ -104,7 +104,7 @@ struct StoreMacroTileClear
     /// @param pDstSurface - Destination surface state
     /// @param x, y - Coordinates to macro tile
     static void StoreClear(
-        const FLOAT *pColor,
+        const float *pColor,
         SWR_SURFACE_STATE* pDstSurface,
         UINT x, UINT y)
     {
@@ -112,7 +112,7 @@ struct StoreMacroTileClear
 
         BYTE dstFormattedColor[16]; // max bpp is 128, so 16 is all we need here for one pixel
 
-        FLOAT srcColor[4];
+        float srcColor[4];
 
         for (UINT comp = 0; comp < FormatTraits<DstFormat>::numComps; ++comp)
         {