<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <br>
    <div class="moz-cite-prefix">On 09/01/2016 11:54 AM, Nayan Deshmukh
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAFd4ddxq_RJe6AtbB335QhGw6yxRs2V_e3yVey62k1=weRQ=ag@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">Hi Leo,
        <div><br>
        </div>
        <div>I saw the code in dri3_glx.c and I could somewhat relate
          some basic code structure</div>
        <div>to the vl_winsys_dri3.c. But I am new to this and not aware
          of the terminology </div>
        <div>that you used about the buffers. Could you please explain
          what needs to be done </div>
        <div>in more detail or point me to where I can read about it.</div>
      </div>
    </blockquote>
    <br>
    I believe it's from loader_dri3_helper.c with "is_different_gpu"
    condition true, that will include back buffer and front buffer case.<br>
    you could try only back buffer case for now.<br>
    <br>
    Regards,<br>
    Leo<br>
    <br>
    <br>
    <blockquote
cite="mid:CAFd4ddxq_RJe6AtbB335QhGw6yxRs2V_e3yVey62k1=weRQ=ag@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Nayan.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Sep 1, 2016 at 7:08 PM, Leo Liu
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:leo.liu@amd.com" target="_blank">leo.liu@amd.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi Nayan,<br>
              <br>
              About the Prime, I think you have to do is to separate
              decoder render buffer and presentation back buffer,<br>
              and copy back and forth between them for presentation and
              update. You might refer to similar implement<br>
              in glx and egl from loader_dri3_helper.c by grep
              "is_different_gpu"<br>
              <br>
              <br>
              Regards,<br>
              Leo
              <div>
                <div class="h5"><br>
                  <br>
                  <br>
                  <div>On 09/01/2016 05:18 AM, Nayan Deshmukh wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Thanks, Michel you saved a lot of my
                      time. 
                      <div><br>
                      </div>
                      <div>Christian, I will get in touch with Leo and
                        get started on this task. </div>
                      <div><br>
                      </div>
                      <div>Regards,</div>
                      <div>Nayan.</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Thu, Sep 1, 2016 at
                        2:08 PM, Christian König <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:christian.koenig@amd.com"
                            target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:christian.koenig@amd.com">christian.koenig@amd.com</a></a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex"><span>Am 01.09.2016 um
                            05:28 schrieb Michel Dänzer:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex"> On 31/08/16
                              06:53 PM, Nayan Deshmukh wrote:<br>
                              <blockquote class="gmail_quote"
                                style="margin:0 0 0 .8ex;border-left:1px
                                #ccc solid;padding-left:1ex"> Hi
                                Christian,<br>
                                <br>
                                You missed a few things in the merge. I
                                will send in the updated patch.<br>
                                <br>
                                I looked at the code in vl_winsys.c and
                                vl_winsys3.c and also<br>
                                at the code in presentation.c where
                                delayed rendering is used. I was trying<br>
                                to compile using vl_dri3_screen_create()
                                but its giving me some error. I<br>
                                will look into the error tonight. My
                                hardware has PRIME configuration. So<br>
                                is my hardware suitable for it?<br>
                              </blockquote>
                              The code in vl_winsys_dri3.c doesn't
                              support PRIME yet. Might not be too<br>
                              hard to add though. Grep for
                              "is_different_gpu". Leo might have done<br>
                              some work on this, so coordinate with him
                              before spending too much<br>
                              effort on this.<br>
                              <br>
                            </blockquote>
                          </span> Thanks for the note, I assumed Leo
                          already implemented that, but wasn't 100%
                          sure.<br>
                          <br>
                          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.<br>
                          <br>
                          Would also help getting you into the code and
                          a bit more into the stack in general.<br>
                          <br>
                          Regards,<br>
                          Christian.<br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
mesa-dev mailing list
<a moz-do-not-send="true" href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a>
<a moz-do-not-send="true" href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a>
</pre>
    </blockquote>
    

  </div>

</blockquote></div>
</div>



</blockquote>
</body></html>