All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: "Sapp, Randolph" <rs@ti.com>
Cc: Andrew Davis <afd@ti.com>,
	reatmon@ti.com, denys@ti.com, detheridge@ti.com,
	meta-ti@lists.yoctoproject.org
Subject: Re: [EXTERNAL] Re: [meta-ti] [master][PATCH v2] meta-ti-bsp: Graphics recipe overhaul
Date: Thu, 22 Dec 2022 17:47:46 -0500	[thread overview]
Message-ID: <20221222224746.GC22689@denix.org> (raw)
In-Reply-To: <7Q29NR.T2R7VR8YUI2B2@ti.com>

On Wed, Dec 21, 2022 at 10:49:19AM -0600, Sapp, Randolph wrote:
> On Mon, Dec 19 2022 at 16:32:35 -05:00:00, Denys Dmytriyenko
> <denis@denix.org> wrote:
> >Can you please explain why existing machine feature cannot be
> >re-used and a
> >new one is needed here? Do you plan to use both side-by-side?
> 
> Yes, so gpu is a super generic machine feature. On our platforms
> this could mean anything from some minimal device with a tidss
> module that wants to do software rendering to a full blown device
> with rogue/sgx graphics processors. The gpu feature is required to
> build graphics libraries in either case, but if they are doing
> software rendering they won't need the rogue/sgx specific patches.
> The new machine feature makes this distinction clear and allows us
> to switch between rogue/sgx/swrast tooling as necessary.

Well, not exactly...

We originally created "sgx" machine feature in meta-ti to be used in 
downstream layers (as that was not a common upstream flag), as there 
was a need to mark platforms with accelerated 3D GFX core and SGX was 
the only one used in TI platforms back then.

As J721e was the first SoC with the Rogue core, there was still a need 
to indicate a presence of 3D graphics regarless of the driver, hence I 
made the flag more generic by renaming "sgx" into "gpu":
https://git.yoctoproject.org/meta-ti/commit/?id=0d9910c1710d9d4b2dd986403824ae05b6289e63

The thinking was that for any display and graphics capabilities w/o 
accelerated 3D (or software-rendered 3D), there's still a standard 
upstream machine feature called "screen", perfectly suited for that.

So, "gpu" flag specifically means HW-accelerated 3D graphics core, 
regardless of the model, generation or driver used. That covers 
SGX and Rogue now. You can still build Mesa and other graphics 
components w/o "gpu" flag for software rendering just fine.

-- 
Denys


  reply	other threads:[~2022-12-22 22:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-06 17:45 [master][PATCH v2] meta-ti-bsp: Graphics recipe overhaul Randolph Sapp
2022-12-07 17:15 ` Ryan Eatmon
2022-12-07 18:48 ` [meta-ti] " Andrew Davis
2022-12-09 22:18   ` Sapp, Randolph
2022-12-14  0:07     ` Denys Dmytriyenko
2022-12-14 18:47     ` Andrew Davis
2022-12-14 20:26       ` Sapp, Randolph
2022-12-19 21:32         ` Denys Dmytriyenko
2022-12-21 16:49           ` [EXTERNAL] " Sapp, Randolph
2022-12-22 22:47             ` Denys Dmytriyenko [this message]
2022-12-27 18:36               ` [EXTERNAL] " Sapp, Randolph
2023-01-04 23:07                 ` Denys Dmytriyenko
2023-01-11 19:33                   ` Sapp, Randolph
2023-01-11 19:37                     ` Andrew Davis
2022-12-14 18:03   ` Sapp, Randolph

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=20221222224746.GC22689@denix.org \
    --to=denis@denix.org \
    --cc=afd@ti.com \
    --cc=denys@ti.com \
    --cc=detheridge@ti.com \
    --cc=meta-ti@lists.yoctoproject.org \
    --cc=reatmon@ti.com \
    --cc=rs@ti.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.