disable buffer_from_host_ptr cap

This commit is contained in:
Jeff Bolz 2025-12-29 22:07:54 -06:00
parent a151dcebda
commit 8240a9c3b9
1 changed files with 1 additions and 4 deletions

View File

@ -14040,13 +14040,10 @@ static void ggml_backend_vk_device_get_props(ggml_backend_dev_t dev, struct ggml
props->type = ggml_backend_vk_device_get_type(dev);
props->device_id = ctx->pci_bus_id.empty() ? nullptr : ctx->pci_bus_id.c_str();
ggml_backend_vk_device_get_memory(dev, &props->memory_free, &props->memory_total);
auto device = ggml_vk_get_device(ctx->device);
props->caps = {
/* .async = */ true,
/* .host_buffer = */ true,
/* .buffer_from_host_ptr = */ device->external_memory_host,
/* .buffer_from_host_ptr = */ false,
/* .events = */ true,
};
}