Mesa (staging/20.1): draw/tess: free tessellation control shader i/o memory.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 6 17:43:02 UTC 2020


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Tue May  5 16:02:39 2020 +1000

draw/tess: free tessellation control shader i/o memory.

Fixes: 0d02a7b8ca79 (draw: add main tessellation code)

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4899>
(cherry picked from commit d1ad1be35a5ba609fd533f2a808a473a067028d8)

---

 .pick_status.json                      | 2 +-
 src/gallium/auxiliary/draw/draw_tess.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.pick_status.json b/.pick_status.json
index 676b4d0206b..3b52a19d25c 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -733,7 +733,7 @@
         "description": "draw/tess: free tessellation control shader i/o memory.",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "master_sha": null,
         "because_sha": "0d02a7b8ca794a594c2e9cc5e6d63dc591593105"
     },
diff --git a/src/gallium/auxiliary/draw/draw_tess.c b/src/gallium/auxiliary/draw/draw_tess.c
index f025d955f02..07d5ef960f7 100644
--- a/src/gallium/auxiliary/draw/draw_tess.c
+++ b/src/gallium/auxiliary/draw/draw_tess.c
@@ -497,8 +497,11 @@ void draw_delete_tess_ctrl_shader(struct draw_context *draw,
       }
 
       assert(shader->variants_cached == 0);
+      align_free(dtcs->tcs_input);
+      align_free(dtcs->tcs_output);
    }
 #endif
+
    if (dtcs->state.ir.nir)
       ralloc_free(dtcs->state.ir.nir);
    FREE(dtcs);



More information about the mesa-commit mailing list