misc vulkan cleanup

make pushconts consistent w/ dispatch, avoid a double free
This commit is contained in:
Aaron Miller 2023-10-10 21:38:18 -07:00 committed by cebtenzzre
parent f0cd38b9ad
commit 46385ee0d5
2 changed files with 3 additions and 2 deletions

View File

@ -307,7 +307,9 @@ bool ggml_vk_has_h2d_all(struct ggml_kompute_context * ctx) {
void ggml_vk_free(struct ggml_kompute_context * ctx) {
assert(ctx == s_kompute_context);
s_kompute_context = nullptr;
if (ctx != nullptr) {
delete ctx;
}
}
static

View File

@ -20,7 +20,6 @@ layout(push_constant) uniform PushConstants {
uint inAOff;
uint inBOff;
uint outOff;
uint row;
} pcs;
void main() {