<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Reviewed-by: Tim Rowley <<a href="mailto:timothy.o.rowley@intel.com" class="">timothy.o.rowley@intel.com</a>>
<div class=""><br class="">
<div style="">
<blockquote type="cite" class="">
<div class="">On Nov 19, 2016, at 9:48 AM, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu" class="">imirkin@alum.mit.edu</a>><br class="">
---<br class="">
src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp | 13 ++++++++-----<br class="">
1 file changed, 8 insertions(+), 5 deletions(-)<br class="">
<br class="">
diff --git a/src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp b/src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp<br class="">
index 8501e21..31a40a3 100644<br class="">
--- a/src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp<br class="">
+++ b/src/gallium/drivers/swr/rasterizer/memory/ClearTile.cpp<br class="">
@@ -156,16 +156,19 @@ void StoreHotTileClear(<br class="">
{<br class="">
    PFN_STORE_TILES_CLEAR pfnStoreTilesClear = NULL;<br class="">
<br class="">
-    SWR_ASSERT(renderTargetIndex != SWR_ATTACHMENT_STENCIL);  ///@todo Not supported yet.<br class="">
-<br class="">
-    if (renderTargetIndex != SWR_ATTACHMENT_DEPTH)<br class="">
+    if (renderTargetIndex == SWR_ATTACHMENT_STENCIL)<br class="">
    {<br class="">
-        pfnStoreTilesClear = sStoreTilesClearColorTable[pDstSurface->format];<br class="">
+        SWR_ASSERT(pDstSurface->format == R8_UINT);<br class="">
+        pfnStoreTilesClear = StoreMacroTileClear<R8_UINT, R8_UINT>::StoreClear;<br class="">
    }<br class="">
-    else<br class="">
+    else if (renderTargetIndex == SWR_ATTACHMENT_DEPTH)<br class="">
    {<br class="">
        pfnStoreTilesClear = sStoreTilesClearDepthTable[pDstSurface->format];<br class="">
    }<br class="">
+    else<br class="">
+    {<br class="">
+        pfnStoreTilesClear = sStoreTilesClearColorTable[pDstSurface->format];<br class="">
+    }<br class="">
<br class="">
    SWR_ASSERT(pfnStoreTilesClear != NULL);<br class="">
<br class="">
-- <br class="">
2.7.3<br class="">
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>