Commit 342ceb1e authored by Dave Airlie's avatar Dave Airlie
Browse files

zink: only clear the aspects mentioned in the clear.

This fixes:
dEQP-GLES2.functional.depth_stencil_clear.depth_stencil_scissored

The code was clearing both depth and stencil for clears that were
depth or stencil only.
parent 3054921a
Pipeline #277927 waiting for manual action with stages
in 9 seconds
......@@ -312,7 +312,7 @@ out:
struct zink_framebuffer_clear_data *zsclear = NULL;
if (zs_clear)
zsclear = zink_fb_clear_element(zs_clear, j);
zink_clear(&ctx->base, to_clear,
zink_clear(&ctx->base, clear->zs.bits,
clear->has_scissor ? &clear->scissor : NULL,
&clear->color.color,
zsclear ? zsclear->zs.depth : 0,
......@@ -321,7 +321,7 @@ out:
} else {
for (int j = !zink_fb_clear_first_needs_explicit(zs_clear); j < zink_fb_clear_count(zs_clear); j++) {
struct zink_framebuffer_clear_data *clear = zink_fb_clear_element(zs_clear, j);
zink_clear(&ctx->base, to_clear,
zink_clear(&ctx->base, clear->zs.bits,
clear->has_scissor ? &clear->scissor : NULL,
NULL,
clear->zs.depth,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment