All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Miguel Angel Vico <mvicomoya@nvidia.com>
Cc: "Rob Clark" <rclark@redhat.com>,
	"Nicolai Hähnle" <nhaehnle@gmail.com>,
	dri-devel <dri-devel@lists.freedesktop.org>,
	"Jason Ekstrand" <jason.ekstrand@intel.com>,
	"Kristian H. Kristensen" <hoegsberg@google.com>,
	"Ben Skeggs" <bskeggs@redhat.com>,
	"Chad Versace" <chadversary@google.com>,
	"mesa-dev@lists.freedesktop.org" <mesa-dev@lists.freedesktop.org>,
	"Lyude Paul" <cpaul@redhat.com>
Subject: Re: [Mesa-dev] Allocator Nouveau driver, Mesa EXT_external_objects, and DRM metadata import interfaces
Date: Mon, 8 Jan 2018 10:35:37 +0100	[thread overview]
Message-ID: <20180108093537.GZ26573@phenom.ffwll.local> (raw)
In-Reply-To: <20171228102438.115a4e64@nvidia.com>

Just wanted to clarify this one thing here, otherwise I think Rob/krh
covered it all.

On Thu, Dec 28, 2017 at 10:24:38AM -0800, Miguel Angel Vico wrote:
> Daniel Vetter wrote:
> > I think in the interim figuring out how to expose kms capabilities
> > better (and necessarily standardizing at least some of them which
> > matter at the compositor level, like size limits of framebuffers)
> > feels like the place to push the ecosystem forward. In some way
> > Miguel's proposal looks a bit backwards, since it adds the pitch
> > capabilities to addfb, but at addfb time you've allocated everything
> > already, so way too late to fix things up. With modifiers we've added
> > a very simple per-plane property to list which modifiers can be
> > combined with which pixel formats. Tiny start, but obviously very far
> > from all that we'll need.  
> 
> Not sure whether I might be misunderstanding your statement, but one of
> the allocator main features is negotiation of nearly optimal allocation
> parameters given a set of uses on different devices/engines by the
> capability merge operation. A client should have queried what every
> device/engine is capable of for the given uses, find the optimal set of
> capabilities, and use it for allocating a buffer. At the moment these
> parameters are given to KMS, they are expected to be good. If they
> aren't, the client didn't do things right.

Your example code has a new capability for PITCH_ALIGNMENT. That looks
wrong for addfb (which should only received the the computed intersection
of all requirements, not the requirements itself). And since that was the
only thing in your example code besides the bare boilerplate to wire it
all up it looks a bit confused.

Maybe we need to distinguish capabilities into constraints on properties
(like pitch alignment, or power-of-two pitch) and properties (like pitch)
themselves.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

      parent reply	other threads:[~2018-01-08  9:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20171220085151.6327051e@nvidia.com>
2017-12-20 19:51 ` [Mesa-dev] Allocator Nouveau driver, Mesa EXT_external_objects, and DRM metadata import interfaces Daniel Vetter
2017-12-20 19:54   ` Kristian Høgsberg
2017-12-20 20:41     ` Miguel Angel Vico
2017-12-20 23:22       ` [Mesa-dev] " Kristian Kristensen
2017-12-21  1:05         ` Ilia Mirkin
2017-12-21  8:05         ` Daniel Vetter
2018-02-21  6:14           ` Chad Versace
2018-02-21 18:26             ` [Mesa-dev] " Daniel Vetter
2018-02-21 23:23               ` Chad Versace
2018-02-22  0:00             ` Alex Deucher
2018-02-22 18:04               ` Kristian Høgsberg
2018-02-22 18:49                 ` Bas Nieuwenhuizen
2018-02-22 21:16                   ` Alex Deucher
2018-02-27  6:10                     ` James Jones
2018-03-07 17:23                     ` Daniel Vetter
2018-02-22 19:21                 ` [Mesa-dev] " Eric Anholt
     [not found] ` <CAPj87rOmGsN+HZEk1G=gFx_uPyipzEURB7=bfqOxxmLDtWwPgw@mail.gmail.com>
     [not found]   ` <b1d78126-fb83-d3c0-290f-8a5406ab1c79@nvidia.com>
     [not found]     ` <CAKMK7uHGBhMge8ayqcJUXysesVL8yc1dNk3rdH6C_N2DpO2OyQ@mail.gmail.com>
     [not found]       ` <CAF6AEGtNsBwhJAiUGuUQFdKccurSzD-HnpHH-JcHSx0RUCnZGA@mail.gmail.com>
2017-12-28 18:24         ` Miguel Angel Vico
2018-01-03 14:53           ` [Mesa-dev] " Rob Clark
2018-01-03 19:26           ` James Jones
2018-01-03 20:36             ` Kristian Kristensen
2018-01-08  9:35           ` Daniel Vetter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180108093537.GZ26573@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=bskeggs@redhat.com \
    --cc=chadversary@google.com \
    --cc=cpaul@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hoegsberg@google.com \
    --cc=jason.ekstrand@intel.com \
    --cc=mesa-dev@lists.freedesktop.org \
    --cc=mvicomoya@nvidia.com \
    --cc=nhaehnle@gmail.com \
    --cc=rclark@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.