DescriptionTexture cache access time might leak texture information, if a sampler dependent value is used as the texture coordinate or LOD bias in a sampling operation.
For example:
vec4 c1 = texture2D(u_texture, v_texCoord);
vec4 c2 = texture2D(u_texture, vec2(c1.r)); // c1 can't be tex coord!
This patch makes SH_TIMING_RESTRICTIONS restrict sampler dependent expressions from appearing as the coord or bias arguments in *all* WebGL sampling operations (texture2D, textureCube, etc.). Before, we just checked texture2D.
This patch also adds a "-x=r" flag to translator.cpp to enable the ARB_texture_rectangle extension. This is so that we can easily test texture2DRect and texture2DRectProj.
Patch Set 1 #
MessagesTotal messages: 8
|