OSDN Git Service

Deprecate handling power-of-two texture sampling separately.
authorNicolas Capens <capn@google.com>
Fri, 2 Dec 2016 19:22:32 +0000 (14:22 -0500)
committerNicolas Capens <capn@google.com>
Tue, 6 Dec 2016 03:04:25 +0000 (03:04 +0000)
commit779805100c7605d92ab8b8fd5bfbdaf9ab8a4351
treede120f4ab1dacd06de5b13f8c73fbfd0095931ae
parent84729949db3b700fc850da51b4a972b87142b1a4
Deprecate handling power-of-two texture sampling separately.

NPOT texture sampling is slightly slower, but with OpenGL we were
already treating every mipmapped texture as NPOT due to requiring
padding at the 1x1 level for renderability. Seamless cube maps are
also NPOT due to the border. Furthermore, the vector shifts by scalar
required for POT texel address calculation would require 128-bit
values when we deprecate MMX.

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