Module: Mesa
Branch: master
Commit: 17cdd1e7964d87c2918469a5f961500ad2b00581
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=17cdd1e7964d87c2918469a5f961500ad2b00581

Author: Tim Rowley <[email protected]>
Date:   Thu Jun  8 18:37:08 2017 -0500

swr/rast: Adjust cast for gcc warning

Reviewed-by: Bruce Cherniak <[email protected]>

---

 src/gallium/drivers/swr/rasterizer/core/backend.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/core/backend.cpp 
b/src/gallium/drivers/swr/rasterizer/core/backend.cpp
index 524c4f4e60..8c9449baa0 100644
--- a/src/gallium/drivers/swr/rasterizer/core/backend.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/backend.cpp
@@ -386,7 +386,7 @@ void ProcessStoreTileBE(DRAW_CONTEXT *pDC, uint32_t 
workerId, uint32_t macroTile
 
         if (pHotTile->state == HOTTILE_DIRTY || pHotTile->state == 
HOTTILE_RESOLVED)
         {
-            if (!(pDesc->postStoreTileState == HOTTILE_DIRTY && 
pHotTile->state == HOTTILE_RESOLVED))
+            if (!(pDesc->postStoreTileState == (SWR_TILE_STATE)HOTTILE_DIRTY 
&& pHotTile->state == HOTTILE_RESOLVED))
             {
                 pHotTile->state = (HOTTILE_STATE)pDesc->postStoreTileState;
             }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to