From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 5778F4E4D6 for ; Sat, 3 May 2025 15:02:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 84A2A68B57A; Sat, 3 May 2025 18:02:11 +0300 (EEST) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7DFE7687D42 for ; Sat, 3 May 2025 18:02:04 +0300 (EEST) Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-7cad6a4fae4so228442185a.2 for ; Sat, 03 May 2025 08:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746284522; x=1746889322; darn=ffmpeg.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=IGzvNApygEPA2OTjyJ+DwvFKds8UD6JIi9edz/GT4eg=; b=KywHdQgxOUjFoU9qsRcIBhfnnjZF2WFb8RpMf1mh11K2guty+qUl7B5w6GRE/5TtGR gMxR1KcW1XCxhg2AYYeumPCAhslkgv/ThP21C+Ak/1baPBXTtAstGxsyG9PWPJG+IOmv kJiMJtalU+DINRdQDW7taSM3d02XvYc1MisyzIwkq1ca+mTPKxuuAcjmSKLKmp7EaUFK p1AMuE5JJS/L8CUAVnYEG+wuJE/SU7L9Sfze6OamG2qyszkAcGvjqjuBUse6bNKavZAC fN2T6NcBaIiHloau5S5CQrR9pI0Ojpro8uhkPcMGWyYYnSa/gpZdhmoXHHQWUs57lmlt vCUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746284522; x=1746889322; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IGzvNApygEPA2OTjyJ+DwvFKds8UD6JIi9edz/GT4eg=; b=Jwnt7+7wJ/S+jE0Ubu9KSqL3TiEcltCg8kT92cUv9pKltgGCe1/fM+QTu4A74LjxXK PEHcFV9kfp/cLjn0bwQXPEgdi+hNW50AtfwdwXlyuKFWw5TITPr9XR3ode/J3auDDvq/ pHUt9JxfVF0kwJNS1ya8PkYI2gW6icGWK1r7rJWbuB83WP7jURzjYEygBvbEe6YNbaat bqNzEE/IE3wvv/TUkqsHt0AO2uCRO5jKnd/eCYb+7gOvbwjVm4sSv9dFvrkcFmDRqQnN CYZP/akbpSHP/jczhvrCiSdcURPTN5Df9jMJWlODRPJzEW0z7l3NQWE4IPyRu9hBuE7Z qw0Q== X-Gm-Message-State: AOJu0YxW6nmkwaGXEPd6HPCzylXbgJnb9NVplyAj0md2E7T6Gns9YUg+ YvXmds4hMX2WIH/bpP+wGtQe3TW6WjKVMVlOvc4AQpZ8zJ4NW+QAzLQRh2sS+e6TGbUdFi0eN6m YN8f/3XqY1NIlMCzxrw9/FZa0D6ZxBndJ X-Gm-Gg: ASbGnctFWuARmMzfiC/nQx9z8QePBBa6Hy5AY8q0PKvhX2k33l3MJw2cG7VczY4mdJi eLV9UkxuJV3w8+S0U1BcZ5012g4oghO/K8D1zLU6EVZg45IlolNcTy2nWQou3l9GIqAGy9BMYpQ eY/DJ+E3xyfEtqHI5N8bSqM6Y= X-Google-Smtp-Source: AGHT+IF5piYXcSKTpdvATrw+QSlOCE8uQu8ueP6k9eIKL0rOZHiq8CRabst+Mdwrqq2oXW4jEdGt/KlOrrwuNwi/6Bw= X-Received: by 2002:a05:620a:27c8:b0:7c9:25cd:f8dc with SMTP id af79cd13be357-7cae3a92f47mr178620585a.23.1746284522051; Sat, 03 May 2025 08:02:02 -0700 (PDT) MIME-Version: 1.0 References: <20250501050527.582070-1-russellgreene8@gmail.com> <5e7d6033-6324-42b3-bff6-d2a08400f155@lynne.ee> <45b9d7ee-3a64-4d38-980b-bd8ae06b9025@lynne.ee> In-Reply-To: <45b9d7ee-3a64-4d38-980b-bd8ae06b9025@lynne.ee> From: Russell Greene Date: Sat, 3 May 2025 09:01:44 -0600 X-Gm-Features: ATxdqUFnZBc8VZT3OLQIi9NacsbzYLFr4ABjg9aJEinGxyfy-AHQELNjw9NKJFU Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] hwcontext_vulkan: fix exporting multi-plane DRM modifiers X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: > vkGetPhysicalDeviceToolPropertiesEXT(dev, nb, array) > If pToolProperties is NULL, then the number of tools currently active on > physicalDevice is returned in pToolCount. Otherwise, pToolCount must > point to a variable set by the application to the number of elements in > the pToolProperties array, and on return the variable is overwritten > with the number of structures actually written to pToolProperties. If > pToolCount is less than the number of currently active tools, at most > pToolCount structures will be written. > > It's in the spec. Different function, but all functions which write to > an array follow the same signature. Sorry, I guess I wasn't clear about my question. I understand that you can fetch the size by setting the data pointer to NULL, etc. The question is "is there way to fetch the number of memory planes a modifier uses without allocating memory?" My understanding is: 1. There is no fixed number of modifiers a driver can expose (this may be wrong, but seems to me it would be a strange limitation, and I don't see anything in the vk spec or drivers that indicat that this could be the case) 2. We don't know where in the modifier list the one we want info about is So therefore, we have to fetch the info for *all* modifiers, which as I understand it probably requires at least a slow path with an allocation for drivers that potentially have a lot of modifiers. If we're OK with a practical "we don't support drivers with more than X modifiers because we doubt it'll ever exist" then that's a valid answer as well. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".