Reviewed-by: Tim Rowley 
<timothy.o.row...@intel.com<mailto:timothy.o.row...@intel.com>>

On Nov 1, 2016, at 3:45 PM, Ilia Mirkin 
<imir...@alum.mit.edu<mailto:imir...@alum.mit.edu>> wrote:

Signed-off-by: Ilia Mirkin <imir...@alum.mit.edu<mailto:imir...@alum.mit.edu>>
---
src/gallium/drivers/swr/rasterizer/core/api.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp 
b/src/gallium/drivers/swr/rasterizer/core/api.cpp
index 5f941e8..b1a426d 100644
--- a/src/gallium/drivers/swr/rasterizer/core/api.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/api.cpp
@@ -950,9 +950,11 @@ void SetupPipeline(DRAW_CONTEXT *pDC)
    // have to check for the special case where depth/stencil test is enabled 
but depthwrite is disabled.
    pState->state.depthHottileEnable = 
((!(pState->state.depthStencilState.depthTestEnable &&
                                           
!pState->state.depthStencilState.depthWriteEnable &&
+                                           
!pState->state.depthBoundsState.depthBoundsTestEnable &&
                                           
pState->state.depthStencilState.depthTestFunc == ZFUNC_ALWAYS)) &&
                                        
(pState->state.depthStencilState.depthTestEnable ||
-                                         
pState->state.depthStencilState.depthWriteEnable)) ? true : false;
+                                         
pState->state.depthStencilState.depthWriteEnable ||
+                                         
pState->state.depthBoundsState.depthBoundsTestEnable)) ? true : false;

    pState->state.stencilHottileEnable = 
(((!(pState->state.depthStencilState.stencilTestEnable &&
                                             
!pState->state.depthStencilState.stencilWriteEnable &&
--
2.7.3


_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to