mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
st/bitmap: release the temporary bitmap sampler view
st_cb_bitmap appends a temporary bitmap sampler view to the sampler view array passed to set_sampler_views().1a5c660ef5changed this path to only release the extra YUV views returned by st_get_sampler_views(), but the temporary bitmap view is created locally and is not part of extra_sampler_views. It therefore stopped being released so release the temporary bitmap sampler view explicitly after drawing the bitmap quad. Fixes:1a5c660ef5("st/bitmap: only release YUV samplerviews") (cherry picked from commit33864e569e) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40979>
This commit is contained in:
parent
e145579956
commit
0347549074
2 changed files with 2 additions and 1 deletions
|
|
@ -4974,7 +4974,7 @@
|
|||
"description": "st/bitmap: release the temporary bitmap sampler view",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "1a5c660ef5b881d4193566a777b150ef912a4f9a",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -468,6 +468,7 @@ st_flush_bitmap_cache(struct st_context *st)
|
|||
cache->fp,
|
||||
cache->scissor_enabled,
|
||||
cache->clamp_frag_color);
|
||||
pipe->sampler_view_release(pipe, sv);
|
||||
}
|
||||
|
||||
/* release/free the texture */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue