From 5fb8e4af4b7e95243f45ede8ad31b91f4643981c Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 10 Sep 2025 18:10:15 +0200 Subject: [PATCH] aux/pp: fixup sampler-view release Without this, the prost-processing mechanism crashes badly, whoops. Fixes: 73da0dcddcb ("gallium: eliminate frontend refcounting from samplerviews") Reviewed-by: Mike Blumenkrantz Part-of: (cherry picked from commit fc0418a69fd7c5d1b6c426314649e7449477c578) --- .pick_status.json | 2 +- src/gallium/auxiliary/postprocess/pp_run.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 9888d9e8416..658e25de3e9 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -6104,7 +6104,7 @@ "description": "aux/pp: fixup sampler-view release", "nominated": true, "nomination_type": 2, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "73da0dcddcb351f46544b207de55a4cb81654cb8", "notes": null diff --git a/src/gallium/auxiliary/postprocess/pp_run.c b/src/gallium/auxiliary/postprocess/pp_run.c index 17af3c05989..6c459c5ae48 100644 --- a/src/gallium/auxiliary/postprocess/pp_run.c +++ b/src/gallium/auxiliary/postprocess/pp_run.c @@ -231,7 +231,7 @@ pp_filter_setup_out(struct pp_program *p, struct pipe_resource *out) void pp_filter_end_pass(struct pp_program *p) { - pipe_sampler_view_reference(&p->view, NULL); + pipe_sampler_view_release_ptr(&p->view); } /**