OSDN Git Service

Fix depth clamping during 'very' early depth test.
authorNicolas Capens <capn@google.com>
Thu, 5 Oct 2017 20:05:47 +0000 (16:05 -0400)
committerNicolas Capens <nicolascapens@google.com>
Fri, 6 Oct 2017 14:36:10 +0000 (14:36 +0000)
commit5ba372fa3e3a51fb69426764f7d5dde395bd4d61
tree6a6db244ed0b25efe645b6bdb9f13e34c311ed09
parent9d56da27fd2f97af9a5f6a96227abdd5564503cb
Fix depth clamping during 'very' early depth test.

We perform depth testing before computing scanline invariants, as an
optimization. But it was not taking into account that the
fixed-function depth value may require clamping due to the depth bias.

Bug swiftshader:82

Change-Id: I6f8953f9d060c73b5fe209b8cbad70e7cb7588b4
Reviewed-on: https://swiftshader-review.googlesource.com/13088
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Renderer/QuadRasterizer.cpp
src/Renderer/QuadRasterizer.hpp
src/Shader/PixelRoutine.cpp