st/mesa: disable depth/stencil/alpha tests in PBO upload
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 18 Feb 2016 19:31:38 +0000 (14:31 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 19 Feb 2016 01:49:12 +0000 (20:49 -0500)
Noticed by Brian Paul.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_texture.c

index d09c3609a9e7b06b6c2c7ce13d8e67d14931e730..8ee95d2f0f5cdcc249500eb4acca99c271cca3dd 100644 (file)
@@ -1340,6 +1340,7 @@ try_pbo_upload_common(struct gl_context *ctx,
                         CSO_BIT_FRAMEBUFFER |
                         CSO_BIT_VIEWPORT |
                         CSO_BIT_BLEND |
+                        CSO_BIT_DEPTH_STENCIL_ALPHA |
                         CSO_BIT_RASTERIZER |
                         CSO_BIT_STREAM_OUTPUTS |
                         CSO_BITS_ALL_SHADERS));
@@ -1479,6 +1480,13 @@ try_pbo_upload_common(struct gl_context *ctx,
    /* Blend state */
    cso_set_blend(cso, &st->pbo_upload.blend);
 
+   /* Depth/stencil/alpha state */
+   {
+      struct pipe_depth_stencil_alpha_state dsa;
+      memset(&dsa, 0, sizeof(dsa));
+      cso_set_depth_stencil_alpha(cso, &dsa);
+   }
+
    /* Rasterizer state */
    cso_set_rasterizer(cso, &st->pbo_upload.raster);