[Mesa-dev] [android-x86-devel] Re: gralloc_drm_pipe
Rob Clark
robdclark at gmail.com
Thu Mar 24 10:29:03 UTC 2016
On Wed, Mar 23, 2016 at 10:14 PM, Chih-Wei Huang
<cwhuang at android-x86.org> wrote:
> 2016-03-24 8:51 GMT+08:00 Rob Clark <robdclark at gmail.com>:
> [deleted]
>>
>> [*] the caveat there is vmwgfx stuff which seems to want to do blits..
>> although I'm not entirely sure why or if that is even still requires
>> w/ newer vmware players. But if vmwgfx still really needs the blit
>> path, I guess they could still keep using gralloc_drm instead of
>> switching to gralloc_gbm ;-)
>
> Did you mean this chunk in gralloc_drm_pipe.c?
>
> if (strcmp(pm->driver, "vmwgfx") == 0) {
> drm->mode_quirk_vmwgfx = 1;
> drm->swap_mode = DRM_SWAP_COPY;
> }
> else {
> drm->mode_quirk_vmwgfx = 0;
> drm->swap_mode = DRM_SWAP_FLIP;
> }
yup (and the parts that handle DRM_SWAP_COPY)
> In my last hacking of gralloc_drm_pipe.c
> for vmwgfx, it seems flip just work.
> Actually I have tried the two paths but
> can't find any explicit differences.
> (at least for VM Player 12 I tested)
> I guess the blit path isn't needed anymore
> so I just removed it:
>
> https://sourceforge.net/p/android-x86/external_drm_gralloc/ci/c04133951d10c4c17c0dfc9b86144b5a5957e17c/
> (I need this hacking because pm->driver was removed
> by Rohb's "pipe: use gallium loader function")
Ahh, that's great if that special case is no longer needed.
BR,
-R
> BTW, the above chunk was written by Chia-I Wu
> (commit db29afe6).
> He is probably the only one who can explain it better.
>
>
> --
> Chih-Wei
> Android-x86 project
> http://www.android-x86.org
>
> --
> You received this message because you are subscribed to the Google Groups "Android-x86 development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to android-x86-devel+unsubscribe at googlegroups.com.
> To post to this group, send email to android-x86-devel at googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86-devel/CAKc24n1ek-d95rQXJgn1iwUDMcKnsk2oiDOjmvp14T%3DfiJK6Zg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
More information about the mesa-dev
mailing list