[Mesa-dev] [PATCH 2/2] kmsro: Extend to include hx8357d.

Eric Anholt eric at anholt.net
Tue Nov 13 02:22:40 UTC 2018


Emil Velikov <emil.l.velikov at gmail.com> writes:

> On Tue, 30 Oct 2018 at 17:49, Eric Anholt <eric at anholt.net> wrote:
>>
>> Emil Velikov <emil.l.velikov at gmail.com> writes:
>>
>> > Hi Eric,
>> >
>> > On Thu, 25 Oct 2018 at 17:39, Eric Anholt <eric at anholt.net> wrote:
>> >>
>> >> This allows vc4 to initialize on the Adafruit PiTFT 3.5" touchscreen with
>> >> the new tinydrm driver I just submitted.  If this series extending the
>> >> pl111/kmsro driver is accepted, then I'll extend kmsro with the other
>> >> tinydrm drivers as well.
>> >
>> > Have you considered teaching the DRI loader about this? Unlike the
>> > tegra driver there's nothing special going on here.
>> > Create a dumb buffer on the DC, export as dmabuf and let the GPU draw into it.
>>
>> The problem with modifying mesa's loaders, as I mentioned in my other
>> reply, is that it means you need to update the xserver's loader and get
>> that deployed everywhere, as well.
>
> Agreed that retroactively fixing X isn't fun. At the same time, with
> the config file suggestion in mind, it's a one off change that will
> make code size and maintenance a lot easier.
> We've already handled that with mega drivers and it turned out just fine.

If I go this route, I get to replicate the code out for xserver,
GLX/DRI3, GLX/DRI2, EGL/DRI3, EGL/dri2, EGL/gbm, and whoops I don't even
know how to test with EGL/android.  It's massive code duplication.

With renderonly, you get to write C code in one place for this sharing.
I agree that having a symlink per KMS driver is ugly, and maybe we could
fix the loaders to fall back to trying kmsro, but I don't think the
loaders should be doing the prime sharing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181112/39f5674d/attachment.sig>


More information about the mesa-dev mailing list