v3d: Don't try to update the shadow texture for separate stencil.
[mesa.git] / src / gallium / drivers / v3d / v3dx_draw.c
index 0c8eb66b939bef5789123183500dce4ec41a3755..7ddd1f92a2fbf10cd7cbf8d3a83245ac1a00b4c8 100644 (file)
@@ -157,7 +157,8 @@ v3d_predraw_check_stage_inputs(struct pipe_context *pctx,
                         continue;
                 struct v3d_sampler_view *view = v3d_sampler_view(pview);
 
-                if (view->texture != view->base.texture)
+                if (view->texture != view->base.texture &&
+                    view->base.format != PIPE_FORMAT_X32_S8X24_UINT)
                         v3d_update_shadow_texture(pctx, &view->base);
 
                 v3d_flush_jobs_writing_resource(v3d, view->texture);