OSDN Git Service

Depth related fixes
authorAlexis Hetu <sugoi@google.com>
Thu, 16 Nov 2017 20:35:59 +0000 (15:35 -0500)
committerAlexis Hétu <sugoi@google.com>
Fri, 17 Nov 2017 15:14:12 +0000 (15:14 +0000)
commitab2dd50632c8fd728f92fab792c597e1965c93c5
tree3fed372f9b5db3106a16ae0d3e5d0fb1ebfdfb30
parentf97f6e0e2e473e93112fa48a2b675f3f63c10663
Depth related fixes

- Depth output should write to the 1st (Red) channel only
- Depth image load should be clamped in the [0, 1] range

Change-Id: Ic7c3ac09c86d5457ec3c59bf9666e2b168226c5e
Reviewed-on: https://swiftshader-review.googlesource.com/13988
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/OpenGL/common/Image.cpp
src/Shader/SamplerCore.cpp