From db4f7eae8bf617c9409f4f94b4d2b7b40e7c8b6c Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Wed, 14 Aug 2019 13:58:33 -0700 Subject: intel/blorp: Assign correct view while clearing depth stencil We never saw any failures regarding this typo but it's good to assign correct stencil view while constructing blorp_params. Fixes: 0cabf93b80d0 "intel/blorp: Add an entrypoint for clearing depth and stencil" Signed-off-by: Sagar Ghuge Reviewed-by: Nanley Chery (cherry picked from commit ce208be2d8793029c5abbde51c972ad1f4166701) --- src/intel/blorp/blorp_clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/intel/blorp/blorp_clear.c b/src/intel/blorp/blorp_clear.c index ba103c8377e..9f2c1d45725 100644 --- a/src/intel/blorp/blorp_clear.c +++ b/src/intel/blorp/blorp_clear.c @@ -606,7 +606,7 @@ blorp_clear_depth_stencil(struct blorp_batch *batch, params.dst.surf.samples = params.stencil.surf.samples; params.dst.surf.logical_level0_px = params.stencil.surf.logical_level0_px; - params.dst.view = params.depth.view; + params.dst.view = params.stencil.view; params.num_samples = params.stencil.surf.samples; -- cgit v1.2.3