Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1153)

Issue 6305049: [SH_TIMING_RESTRICTIONS] Restrict sampler dependent values from the tex coord parameter of all GLSL… (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by mvujovic
Modified:
12 years, 5 months ago
Reviewers:
kbr1, dgkoch, nicolas
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Texture 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -16 lines) Patch
M samples/translator/translator.cpp View 2 chunks +3 lines, -1 line 0 comments Download
M src/compiler/timing/RestrictFragmentShaderTiming.h View 2 chunks +6 lines, -5 lines 0 comments Download
M src/compiler/timing/RestrictFragmentShaderTiming.cpp View 2 chunks +52 lines, -10 lines 0 comments Download

Messages

Total messages: 8
mvujovic
Hi guys, Could you review this when you get a chance? Thanks, Max
12 years, 5 months ago (2012-06-19 21:48:58 UTC) #1
kbr1
Nicolas or Daniel, could one of you take care of this review? Appreciated.
12 years, 5 months ago (2012-06-19 23:31:30 UTC) #2
nicolas
Can a shader have a user-defined texture2DRect when ARB_texture_rectangle is not enabled? The parser prevents ...
12 years, 5 months ago (2012-06-20 19:14:47 UTC) #3
mvujovic
On 2012/06/20 19:14:47, nicolas wrote: > Can a shader have a user-defined texture2DRect when ARB_texture_rectangle ...
12 years, 5 months ago (2012-06-20 23:28:30 UTC) #4
mvujovic
On 2012/06/20 23:28:30, mvujovic wrote: > On 2012/06/20 19:14:47, nicolas wrote: > > Can a ...
12 years, 5 months ago (2012-06-25 16:51:29 UTC) #5
nicolas
Yes, as far as I'm concerned your patch is fine and the parser issue will ...
12 years, 5 months ago (2012-06-25 18:07:56 UTC) #6
mvujovic
On 2012/06/25 18:07:56, nicolas wrote: > Yes, as far as I'm concerned your patch is ...
12 years, 5 months ago (2012-06-25 18:26:34 UTC) #7
mvujovic
12 years, 5 months ago (2012-06-25 20:42:27 UTC) #8
On 2012/06/25 18:26:34, mvujovic wrote:
> On 2012/06/25 18:07:56, nicolas wrote:
> > Yes, as far as I'm concerned your patch is fine and the parser issue will
have
> > to be fixed separately. Thanks for creating the issue report.
> 
> Sounds good. Thanks Nicolas!

Committed in r1167.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b