Mesa (staging/19.2): intel/blorp: Assign correct view while clearing depth stencil

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Oct 30 17:56:40 UTC 2019


Module: Mesa
Branch: staging/19.2
Commit: db4f7eae8bf617c9409f4f94b4d2b7b40e7c8b6c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=db4f7eae8bf617c9409f4f94b4d2b7b40e7c8b6c

Author: Sagar Ghuge <sagar.ghuge at intel.com>
Date:   Wed Aug 14 13:58:33 2019 -0700

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 <sagar.ghuge at intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>
(cherry picked from commit ce208be2d8793029c5abbde51c972ad1f4166701)

---

 src/intel/blorp/blorp_clear.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 




More information about the mesa-commit mailing list