This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new b1f564bda2 hwcontext_vulkan: add support for selecting a device via
text-form UUID
b1f564bda2 is described below
commit b1f564bda248dbe8ac37cb743966fdd7ee4b490c
Author: Lynne <[email protected]>
AuthorDate: Tue Sep 1 06:36:16 2026 +0900
Commit: Lynne <[email protected]>
CommitDate: Tue Sep 1 06:36:16 2026 +0900
hwcontext_vulkan: add support for selecting a device via text-form UUID
We had everything we need for years but somehow never did it.
---
libavutil/hwcontext_vulkan.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 4f2acdc929..b05d613b41 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -40,6 +40,7 @@
#include "hwcontext_internal.h"
#include "hwcontext_vulkan.h"
#include "mem.h"
+#include "uuid.h"
#include "vulkan.h"
#include "vulkan_loader.h"
@@ -2144,10 +2145,15 @@ static int vulkan_device_create(AVHWDeviceContext *ctx,
const char *device,
VulkanDeviceSelection dev_select = { 0 };
if (device && device[0]) {
char *end = NULL;
- dev_select.index = strtol(device, &end, 10);
- if (end == device) {
- dev_select.index = 0;
- dev_select.name = device;
+
+ if (!av_uuid_parse(device, dev_select.uuid)) {
+ dev_select.has_uuid = 1;
+ } else {
+ dev_select.index = strtol(device, &end, 10);
+ if (end == device || *end) {
+ dev_select.index = 0;
+ dev_select.name = device;
+ }
}
}
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]