mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
hk: don't leak GS rast with rast disc
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31532>
This commit is contained in:
parent
2dbd6c440f
commit
568f0a81c6
1 changed files with 8 additions and 0 deletions
|
|
@ -1033,6 +1033,14 @@ hk_compile_shader(struct hk_device *dev, struct vk_shader_compile_info *info,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Nothing consumes this otherwise throw it away.
|
||||
*
|
||||
* TODO: We should just not generate it.
|
||||
*/
|
||||
if (rast_disc) {
|
||||
ralloc_free(rast);
|
||||
}
|
||||
}
|
||||
} else if (sw_stage == MESA_SHADER_VERTEX ||
|
||||
sw_stage == MESA_SHADER_TESS_EVAL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue