diff options
author | Eric Anholt <[email protected]> | 2016-10-05 14:10:30 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-10-06 18:09:24 -0700 |
commit | 9421a6065c4eafbc92657f75da46a4bb70577154 (patch) | |
tree | 1f3adbd697977e4230b3ccf60778ecce1e9b501e /src/gallium/drivers/vc4/vc4_resource.c | |
parent | 8810270d066eced5261ab407e2be4e902b102671 (diff) |
vc4: Fix fallback to quad clears of depth in GLX.
The fix in the vc4-jobs series ended up triggering the fallback path on
GLX apps that use depth but not stencil.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_resource.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index 5f8b6b0f715..4168079cd86 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -193,8 +193,10 @@ vc4_resource_transfer_map(struct pipe_context *pctx, vc4_flush_jobs_writing_resource(vc4, prsc); } - if (usage & PIPE_TRANSFER_WRITE) + if (usage & PIPE_TRANSFER_WRITE) { rsc->writes++; + rsc->initialized_buffers = ~0; + } trans = slab_alloc(&vc4->transfer_pool); if (!trans) |