[Mesa-dev] [Bug 106074] radv: si_scissor_from_viewport returns incorrect result when using half-pixel viewport offset

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 16 11:35:40 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106074

            Bug ID: 106074
           Summary: radv: si_scissor_from_viewport returns incorrect
                    result when using half-pixel viewport offset
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Vulkan/radeon
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: philip.rebohle at tu-dortmund.de
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 138865
  --> https://bugs.freedesktop.org/attachment.cgi?id=138865&action=edit
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:
https://github.com/doitsujin/dxvk/issues/208

The attachment contains a small C program to demonstrate the issue with the
relevant functions directly taken from si_cmd_buffer.c.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180416/b8076ca0/attachment.html>


More information about the mesa-dev mailing list