On 09/01/2016 11:54 AM, Nayan Deshmukh wrote:
Hi Leo,

I saw the code in dri3_glx.c and I could somewhat relate some basic code structure to the vl_winsys_dri3.c. But I am new to this and not aware of the terminology that you used about the buffers. Could you please explain what needs to be done
in more detail or point me to where I can read about it.

I believe it's from loader_dri3_helper.c with "is_different_gpu" condition true, that will include back buffer and front buffer case.
you could try only back buffer case for now.

Regards,
Leo



Regards,
Nayan.

On Thu, Sep 1, 2016 at 7:08 PM, Leo Liu <leo....@amd.com <mailto:leo....@amd.com>> wrote:

    Hi Nayan,

    About the Prime, I think you have to do is to separate decoder
    render buffer and presentation back buffer,
    and copy back and forth between them for presentation and update.
    You might refer to similar implement
    in glx and egl from loader_dri3_helper.c by grep "is_different_gpu"


    Regards,
    Leo



    On 09/01/2016 05:18 AM, Nayan Deshmukh wrote:
    Thanks, Michel you saved a lot of my time.

    Christian, I will get in touch with Leo and get started on this
    task.

    Regards,
    Nayan.

    On Thu, Sep 1, 2016 at 2:08 PM, Christian König
    <christian.koe...@amd.com <mailto:christian.koe...@amd.com>> wrote:

        Am 01.09.2016 um 05:28 schrieb Michel Dänzer:

            On 31/08/16 06:53 PM, Nayan Deshmukh wrote:

                Hi Christian,

                You missed a few things in the merge. I will send in
                the updated patch.

                I looked at the code in vl_winsys.c and vl_winsys3.c
                and also
                at the code in presentation.c where delayed rendering
                is used. I was trying
                to compile using vl_dri3_screen_create() but its
                giving me some error. I
                will look into the error tonight. My hardware has
                PRIME configuration. So
                is my hardware suitable for it?

            The code in vl_winsys_dri3.c doesn't support PRIME yet.
            Might not be too
            hard to add though. Grep for "is_different_gpu". Leo
            might have done
            some work on this, so coordinate with him before spending
            too much
            effort on this.

        Thanks for the note, I assumed Leo already implemented that,
        but wasn't 100% sure.

        Nayan since you are one of the few contributors with a prime
        configuration I think it would make sense for you to hack on
        this first.

        Would also help getting you into the code and a bit more into
        the stack in general.

        Regards,
        Christian.




    _______________________________________________
    mesa-dev mailing list
    mesa-dev@lists.freedesktop.org
    <mailto:mesa-dev@lists.freedesktop.org>
    https://lists.freedesktop.org/mailman/listinfo/mesa-dev
    <https://lists.freedesktop.org/mailman/listinfo/mesa-dev>

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to