From patchwork Sun Feb 9 19:19:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Thompson X-Patchwork-Id: 17744 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 8F73F44AAF6 for ; Sun, 9 Feb 2020 21:19:27 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6F1F068A622; Sun, 9 Feb 2020 21:19:27 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1A3EE689C1D for ; Sun, 9 Feb 2020 21:19:21 +0200 (EET) Received: by mail-wm1-f41.google.com with SMTP id c84so8113703wme.4 for ; Sun, 09 Feb 2020 11:19:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jkqxz-net.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=NcgQwpcYoMOQwiCFyYB86witVIyS+ms5yQjf52q7sQ4=; b=T+yJJYPssIih7Rc8S5GpecV9P9pol2LWyyoOijCFxEEvHbNyj8zxcWie2HEl1qDyay sHb/Z/qf02QE2DDltOvIfZqtmG6nIVeYsoO2RfQjJ9tHbNVkrJFquiqAX+pwbIcpFBzk Kggu6Qy+nZTwOEgZ7l28YsaYcLzqGYTojj9n8nx1M54ER56wnP41M8XrypMQofw+0ILl TR2d5fAIfWzjSqkfkgFSECj3vr7Nl2Oj8AqlZvC3MsEIYXZQk7G4MpD65BqL3zVOupHN znF7ZE7nGGy/h0EspKN8s1T4N2Y6Q6Q382M88LfCIrCmmrA2+03+5xhBhLIuxQdJW6Sv rEYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=NcgQwpcYoMOQwiCFyYB86witVIyS+ms5yQjf52q7sQ4=; b=MTqq2VXwIz/tFn/l0dm+qBsTIlVbx7dfZl2GHc/leOAWqdRL7KdDPrKNeaoIX+f2Yo OpymlUKlv9msQe6xwr8F8CtlfwhAhmlaqt+5usCMv6kNtSy8v8pUcn7F6S65PLtLdw9q l8RmlqN+KRXQPZlWedq9xBerdlbBcPxCkG7wat5Id7jsTmk5qg3Cg23Laa2NOjep/neL 0NWJzc3lVOluoPLIGX5nx7+frJiJS5z+4oSjjeUaDCsW6+GUW9x92+kv3ZsULMJOjp8R iQb+url+YqV0B5Td1q20TGK45Z83e58kzig4SlAT9kXQyyo7mqxwihjQpzYVsUt+Cchj LBTg== X-Gm-Message-State: APjAAAV62/l+ZHxM677UnRZDqFXv18RFEuZJoVFBOEUQOYMAa+zdTowd NeT3mTSgD4eJw5e5xa7PxLUp5opc04E= X-Google-Smtp-Source: APXvYqzaGvkuvSuNNLIcKji8Y1n+w/3fy+KTTzDzEMldlFGRuTbegrnpkC+JaPvHKcoGA1ZYsZA9oQ== X-Received: by 2002:a1c:7215:: with SMTP id n21mr11297930wmc.154.1581275960156; Sun, 09 Feb 2020 11:19:20 -0800 (PST) Received: from [192.168.0.3] (cpc91242-cmbg18-2-0-cust650.5-4.cable.virginm.net. [82.8.130.139]) by smtp.gmail.com with ESMTPSA id h205sm6557868wmf.25.2020.02.09.11.19.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Feb 2020 11:19:19 -0800 (PST) To: FFmpeg development discussions and patches From: Mark Thompson Message-ID: <8622368e-7d82-6c6c-ccb9-834a83665eeb@jkqxz.net> Date: Sun, 9 Feb 2020 19:19:18 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Language: en-US Subject: [FFmpeg-devel] [PATCH] doc/ffmpeg: Document device selection for Vulkan X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- doc/ffmpeg.texi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index dd461c02fc..29753f06ca 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1029,6 +1029,20 @@ Choose the GPU device on the second platform supporting the @emph{cl_khr_fp16} extension. @end table +@item vulkan +If @var{device} is an integer, it selects the device by its index in a +system-dependent list of devices. If @var{device} is any other string, it +selects the first device with a name containing that string as a substring. + +Examples: +@table @emph +@item -init_hw_device vulkan:1 +Choose the second device on the system. + +@item -init_hw_device vulkan:RADV +Choose the first device with a name containing the string @emph{RADV}. +@end table + @end table @item -init_hw_device @var{type}[=@var{name}]@@@var{source}