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:
Alyssa Rosenzweig 2024-09-06 19:35:06 -04:00 committed by Marge Bot
parent 2dbd6c440f
commit 568f0a81c6

View file

@ -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) {