mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 11:30:21 +01:00
st/mesa: disable depth/stencil/alpha tests in PBO upload
Noticed by Brian Paul. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
2f3d06d9f9
commit
d7c4ffd1ee
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue