[Mesa-dev] [PATCH] st/mesa: disable depth/stencil/alpha tests in PBO upload
Marek Olšák
maraeo at gmail.com
Thu Feb 18 20:09:22 UTC 2016
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Thu, Feb 18, 2016 at 8:34 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> Noticed by Brian Paul.
> ---
> src/mesa/state_tracker/st_cb_texture.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
> index d09c360..8ee95d2 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);
>
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list