OSDN Git Service

Fixed default color values for R and RG types
authorAlexis Hetu <sugoi@google.com>
Fri, 21 Jul 2017 15:41:13 +0000 (11:41 -0400)
committerAlexis Hétu <sugoi@google.com>
Fri, 21 Jul 2017 15:50:35 +0000 (15:50 +0000)
commit56f256e757d5d08202e0357bc04069b02a9898a0
tree17f73fb6f9416340d8d2375ab4949a2af2e94f43
parentfacada53c5e6425f91e324b3d53435f1e5b3a5fc
Fixed default color values for R and RG types

By default, in D3D, R, G or B channels default to 1 when no
value is assigned to them. In OpenGL, these channels default
to 0. Added an entry to Conventions to fix this issue.

In dEQP, this fixes all R and RG types tests from:
functional.texture.format.*

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