On Mon, Mar 17, 2025 at 2:27 PM Alex Deucher <[email protected]> wrote:
> On Mon, Mar 17, 2025 at 1:23 PM Marek Olšák <[email protected]> wrote: > > > > Userspace needs a query that a queue IP type is supported. > "available_rings" is used for that right now, but if that's 0, something > else must indicate IP support. > > > > amd_ip_info::num_queues should be non-zero even when user queues are > supported. The exact number doesn't matter with user queues. > > How will mesa determine whether kernel queues are supported? Can mesa > look at amd_ip_info::num_queues and if it's 0, check some new INFO > query to determine if user queues are available? If > amd_ip_info::num_queues is always non-0, then it would be assumed that > the kernel supports kernel queues, which it may not. > That is to be determined. However, num_queues is also used to indicate whether the IP is supported, so either the meaning of num_queues has to change, or the way num_queues is set has to change. Marek
