[Bug 106526] Fractional viewport coordinates shift viewport corner by a whole integer

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 4 10:57:52 UTC 2018


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

Danylo <danylo.piliaiev at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danylo.piliaiev at gmail.com

--- Comment #1 from Danylo <danylo.piliaiev at gmail.com> ---
There is a similar bug filed for Nvidia driver
https://devtalk.nvidia.com/default/topic/971005/linux/glviewportindexedf-wrongly-rounding-down-x-and-y-parameters/
.
I wasn't able to find the exact specification for such case but e.g. Wine
expects coordinates not to be shifted (see
wined3d_caps_gl_ctx_test_viewport_subpixel_bits function in Wine). 

The closest line in specs is in the specification of ARB_viewport_array
extension:

> Direct3D 11 specifies that rasterization along the one-pixel edges of
fractional viewports to be undefined.  If implementations want defined
behavior with fractional viewports, they can program a slightly wider viewport
and scissor away the pixels along the edge of the expanded viewport.

Viewport's width and height is already ceiled on radeon driver and i965 behaves
the same before gen8.

I've made and sent the patch to fix the issue.

-- 
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/intel-3d-bugs/attachments/20180604/e165856c/attachment.html>


More information about the intel-3d-bugs mailing list