OSDN Git Service

Implement GL_MAX_PROGRAM_TEXEL_OFFSET and GL_MAX_TEXTURE_LOD_BIAS
authorAlexis Hetu <sugoi@google.com>
Wed, 16 Aug 2017 17:43:33 +0000 (13:43 -0400)
committerAlexis Hétu <sugoi@google.com>
Wed, 16 Aug 2017 18:35:22 +0000 (18:35 +0000)
commit0e22d3ac1342803e4f6e99dee0b1bc7638f0acdc
tree103b69898b416b40f294fa8eb334ec88d8c447e6
parente8d42ae19d9c8433a728fb1b1382a3ff0258926c
Implement GL_MAX_PROGRAM_TEXEL_OFFSET and GL_MAX_TEXTURE_LOD_BIAS

- GL_MAX_PROGRAM_TEXEL_OFFSET and GL_MIN_PROGRAM_TEXEL_OFFSET were
  technically already properly implemented, since the spec mentions
  that the behavior outside of these limits is undefined, and
  SwiftShader has no actual hard limit for these parameters.
- GL_MAX_TEXTURE_LOD_BIAS also has no hard limit in SwiftShader,
  other than the limit imposed on LOD itself, so that limit was
  used for GL_MAX_TEXTURE_LOD_BIAS.

Change-Id: I60b15b7f7a0febbc3e6582caff6c6a414a5d4964
Reviewed-on: https://swiftshader-review.googlesource.com/11709
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
src/Main/Config.hpp
src/OpenGL/libGLESv2/Context.cpp
src/OpenGL/libGLESv2/Context.h
src/Renderer/Sampler.cpp