<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 - radv: si_scissor_from_viewport returns incorrect result when using half-pixel viewport offset"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106074">106074</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>radv: si_scissor_from_viewport returns incorrect result when using half-pixel viewport offset
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Drivers/Vulkan/radeon
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>philip.rebohle@tu-dortmund.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=138865" name="attach_138865" title="Sample program to demonstrate the issue">attachment 138865</a> <a href="attachment.cgi?id=138865&action=edit" title="Sample program to demonstrate the issue">[details]</a></span>
Sample program to demonstrate the issue

For the following viewport, si_scissor_from_viewport returns an incorrect
scissor rectangle:

  VkViewport vp = { 0.5f, 1.5f, 1.0f, -1.0f, 0.0f, 1.0f };

Expected result:  offset = (0,0), size = (1,1)
Actual result:    offset = (1,1), size = (0,0)

This breaks Final Fantasy XIV on DXVK, see:
<a href="https://github.com/doitsujin/dxvk/issues/208">https://github.com/doitsujin/dxvk/issues/208</a>

The attachment contains a small C program to demonstrate the issue with the
relevant functions directly taken from si_cmd_buffer.c.</pre>
        </div>
      </p>


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

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