Handle stencil textures as one-channel int textures.
authorJarkko Pöyry <jpoyry@google.com>
Wed, 1 Apr 2015 19:30:42 +0000 (12:30 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Fri, 24 Apr 2015 02:14:19 +0000 (19:14 -0700)
commit09037a4653649d707449463dfe9817a78ccf7d2f
treed5460a80ce42e162390b4c83277aa4eb384ab9bd
parentb635ce20ea1e5305fe69095f0741916f66f182ae
Handle stencil textures as one-channel int textures.

- Make sampling from stencil texture return stencil value in R channel.
  This makes stencil textures behave as in GL.
- Fix tests assuming component w is always stencil.

Change-Id: Ibc12949435330e0ac52a469b2fe8f3eab57d9e67
framework/common/tcuTexture.cpp
framework/common/tcuTextureUtil.hpp
modules/gles2/functional/es2fDepthStencilClearTests.cpp
modules/gles3/functional/es3fDepthStencilClearTests.cpp
modules/gles31/functional/es31fStencilTexturingTests.cpp