<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Am 26.10.2013 19:49, schrieb Paul
      Berry:<br>
    </div>
    <blockquote
cite="mid:CA+yLL64tuQ4YR_PVSSbeZmD7uocTKCLPHHDsZE3oJAgXHiOHEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">On 26 October 2013 07:26, Christian König <span
          dir="ltr"><<a moz-do-not-send="true"
            href="mailto:deathsimple@vodafone.de" target="_blank">deathsimple@vodafone.de</a>></span>
        wrote:<br>
        <div class="gmail_extra">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">Merged the fixes and
              pushed the result this morning.<br>
            </blockquote>
            <div><br>
            </div>
            <div>Did you by any chance run "make check"?  I'm seeing the
              following failure:<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Nope, sorry didn't even knew that this still existed.<br>
    <br>
    But it looks like Vinson and Brian already fixed that upstream, thx
    for that.<br>
    <br>
    Christian.<br>
    <br>
    <blockquote
cite="mid:CA+yLL64tuQ4YR_PVSSbeZmD7uocTKCLPHHDsZE3oJAgXHiOHEA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div>
              <br>
===========================================================<br>
                 Mesa 10.0.0-devel: src/mesa/main/tests/test-suite.log<br>
===========================================================<br>
              <br>
              # TOTAL: 1<br>
              # PASS:  0<br>
              # SKIP:  0<br>
              # XFAIL: 0<br>
              # FAIL:  1<br>
              # XPASS: 0<br>
              # ERROR: 0<br>
              <br>
              .. contents:: :depth: 2<br>
              <br>
              FAIL: main-test<br>
              ===============<br>
              <br>
              Running main() from gtest_main.cc<br>
              [==========] Running 7 tests from 3 test cases.<br>
              [----------] Global test environment set-up.<br>
              [----------] 2 tests from EnumStrings<br>
              [ RUN      ] EnumStrings.LookUpByNumber<br>
              [       OK ] EnumStrings.LookUpByNumber (0 ms)<br>
              [ RUN      ] EnumStrings.LookUpUnknownNumber<br>
              [       OK ] EnumStrings.LookUpUnknownNumber (0 ms)<br>
              [----------] 2 tests from EnumStrings (0 ms total)<br>
              <br>
              [----------] 4 tests from DispatchSanity_test<br>
              [ RUN      ] DispatchSanity_test.GL31_CORE<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e66b6<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1009 (VDPAUFiniNV)<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e6d2d<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1010 (VDPAUGetSurfaceivNV)<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e6541<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1011 (VDPAUInitNV)<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e6b10<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1012 (VDPAUIsSurfaceNV)<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e6fa0<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1013 (VDPAUMapSurfacesNV)<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e6a9a<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1014 (VDPAURegisterOutputSurfaceNV)<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e6a24<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1015 (VDPAURegisterVideoSurfaceNV)<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e6e6a<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1016 (VDPAUSurfaceAccessNV)<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e723b<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1017 (VDPAUUnmapSurfacesNV)<br>
              dispatch_sanity.cpp:166: Failure<br>
              Value of: table[i]<br>
                Actual: 0x5e6bce<br>
              Expected: (_glapi_proc) _mesa_generic_nop<br>
              Which is: 0x40cb2c<br>
              i = 1018 (VDPAUUnregisterSurfaceNV)<br>
              [  FAILED  ] DispatchSanity_test.GL31_CORE (3 ms)<br>
              [ RUN      ] DispatchSanity_test.GLES11<br>
              [       OK ] DispatchSanity_test.GLES11 (0 ms)<br>
              [ RUN      ] DispatchSanity_test.GLES2<br>
              [       OK ] DispatchSanity_test.GLES2 (1 ms)<br>
              [ RUN      ] DispatchSanity_test.GLES3<br>
              [       OK ] DispatchSanity_test.GLES3 (0 ms)<br>
              [----------] 4 tests from DispatchSanity_test (4 ms total)<br>
              <br>
              [----------] 1 test from program_state_string<br>
              [ RUN      ] program_state_string.depth_range<br>
              [       OK ] program_state_string.depth_range (0 ms)<br>
              [----------] 1 test from program_state_string (0 ms total)<br>
              <br>
              [----------] Global test environment tear-down<br>
              [==========] 7 tests from 3 test cases ran. (4 ms total)<br>
              [  PASSED  ] 6 tests.<br>
              [  FAILED  ] 1 test, listed below:<br>
              [  FAILED  ] DispatchSanity_test.GL31_CORE<br>
              <br>
               1 FAILED TEST<br>
              <br>
              <br>
            </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <br>
              Thanks for the help,<br>
              Christian.<br>
              <br>
              Am 26.10.2013 01:25, schrieb Marek Olšák:
              <div class="">
                <div class="h5"><br>
                  <blockquote class="gmail_quote" style="margin:0px 0px
                    0px 0.8ex;border-left:1px solid
                    rgb(204,204,204);padding-left:1ex">
                    On Sun, Oct 20, 2013 at 11:57 AM, Christian König<br>
                    <<a moz-do-not-send="true"
                      href="mailto:deathsimple@vodafone.de"
                      target="_blank">deathsimple@vodafone.de</a>>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">
                      Hi Marek,<br>
                      <br>
                      I've just send out a v6 of the patch, please take
                      a second look. Most things<br>
                      are fixed now, but there are still a couple of
                      open issues:<br>
                      <br>
                      <br>
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex">
                        3) There should also probably be some checking
                        for<br>
                        GL_ARB_texture_non_power_of_two, but the spec
                        doesn't say what we<br>
                        should do (probably return
                        GL_INVALID_OPERATION).<br>
                      </blockquote>
                      <br>
                      Actually I thing VDPAU hold the answer to this.
                      The specification there<br>
                      states that the different surfaces creation
                      function should round up the<br>
                      width/height to supported values (which can then
                      be queried later by the<br>
                      application). So we always will end up with
                      correct values independent of<br>
                      GL_ARB_texture_non_power_of_two.<br>
                      <br>
                      <br>
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex">
                        6) Registered and mapped VDPAU textures are not
                        allowed to be<br>
                        re-specified by TexImage, TexSubImage,
                        TexImage*Multisample,<br>
                        CopyTexImage, CopyTexSubImage, TexStorage,
                        TexStorage*Multisample, and<br>
                        similar functions. This should be properly
                        handled in those functions<br>
                        and GL errors should be returned.<br>
                      </blockquote>
                      <br>
                      I would rather like to avoid touching those
                      functions, cause they are not<br>
                      directly related to the spec and I don't want to
                      risk breaking anything<br>
                      there.<br>
                      <br>
                      Would it valid so set/clear the immutable flag
                      instead (honestly I don't<br>
                      have the slightest idea how the frontend handling
                      works in this code)?<br>
                    </blockquote>
                    Yes, it seems to be sufficient.<br>
                    <br>
                    <blockquote class="gmail_quote" style="margin:0px
                      0px 0px 0.8ex;border-left:1px solid
                      rgb(204,204,204);padding-left:1ex">
                      <br>
                      <blockquote class="gmail_quote" style="margin:0px
                        0px 0px 0.8ex;border-left:1px solid
                        rgb(204,204,204);padding-left:1ex">
                        7) The extension spec says that all VDPAU
                        textures should be<br>
                        y-inverted. Is that actually the case here?<br>
                      </blockquote>
                      <br>
                      Uhm, no idea? It does seems to work, but where is
                      that information stored?<br>
                    </blockquote>
                    It means that a VDPAU surface is upside-down when
                    it's used as an<br>
                    OpenGL texture. I don't remember whether we need to
                    a blit or whether<br>
                    OpenGL textures are y-inverted by default (then we
                    don't have to do<br>
                    anything). If we do the same thing as NVIDIA, it's
                    probably okay.<br>
                    <br>
                    <br>
                    Please review and squash the attached patch with
                    your version 6, and<br>
                    feel free to push it.<br>
                    <br>
                    Marek<br>
                  </blockquote>
                  <br>
                </div>
              </div>
              <div class="">
                <div class="h5">
                  _______________________________________________<br>
                  mesa-dev mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:mesa-dev@lists.freedesktop.org"
                    target="_blank">mesa-dev@lists.freedesktop.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev"
                    target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>