<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Strange glViewport behaviors with Lima driver"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111621">111621</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Strange glViewport behaviors with Lima driver
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>19.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>ARM
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>not set
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>not set
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/Lima
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>voxluci@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=145310" name="attach_145310" title="test program, screenshots and debug traces">attachment 145310</a> <a href="attachment.cgi?id=145310&action=edit" title="test program, screenshots and debug traces">[details]</a></span>
test program, screenshots and debug traces

When I use glViewport with non-zero x,y with the lima driver, everything
appears to be clipped at unexpected locations (which does not align with the
viewport).  I do not see this behavior with (for example) the llvmpipe driver.

I've attached a test program, a couple of screenshots (lima and llvmpipe
output), the apitrace and other debug output.  Both show a 320x240 window with
glViewport(80,60,160,120) containing a triangle. Apitrace replay also displays
as expected. A Full window viewport works as expected.  The test program can be
run with 4 arguments to change the arguments to glViewport.

For reference, this is running on an Allwinner R16 (aka A33 I think) which I
gather has some rendition of Mali400 MP2.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>