summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_texture.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-02-18 14:31:38 -0500
committerNicolai Hähnle <[email protected]>2016-02-18 20:49:12 -0500
commitd7c4ffd1ee08fa93a138926187f354aded6edde4 (patch)
treea3990a7db5a6ae84bdb1bf5541cf4cbb76b6d125 /src/mesa/state_tracker/st_cb_texture.c
parent2f3d06d9f95982b1dd9733260562e9b6484fc661 (diff)
st/mesa: disable depth/stencil/alpha tests in PBO upload
Noticed by Brian Paul. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_cb_texture.c')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index d09c3609a9e..8ee95d2f0f5 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -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);