OSDN Git Service

Texture size fix
authorAlexis Hetu <sugoi@google.com>
Thu, 2 Jun 2016 21:47:38 +0000 (17:47 -0400)
committerAlexis Hétu <sugoi@google.com>
Mon, 6 Jun 2016 16:41:40 +0000 (16:41 +0000)
commit9f7d5621a0e619df5780d1a29b6e751eb43e409b
tree6cdcfa3c5c3cb62a03009588084e515348f84887
parent1f2003a225ce8c4731d23f3aef0ed3369832b4a1
Texture size fix

I looked into the texture size issue and I removed the " + Int(1)"
used on the LOD and replaced it with "baseLevel", which I think makes
more sense. Without the "+1", some tests using baseLevel==1 fail, but
all tests pass when I use "+baseLevel". I'm not 100% sure why the
"+1" wasn't making tests that were using baseLevel==0 fail.

Note that, for now, the new Sampler::State "baseLevel" member will
always be 0, as the code to set it hasn't landed yet and will be in
another cl.

Change-Id: I8532bb7009abcc15e03416489f1d25027e336457
Reviewed-on: https://swiftshader-review.googlesource.com/5471
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/Renderer/Sampler.hpp
src/Shader/PixelProgram.cpp
src/Shader/SamplerCore.cpp
src/Shader/SamplerCore.hpp
src/Shader/VertexProgram.cpp