The boilerplate texture-coord generation code inserts a uniform matrix which is multiplied by the positions ...
12 years, 5 months ago
(2012-07-20 14:12:52 UTC)
#1
The boilerplate texture-coord generation code inserts a uniform matrix which is
multiplied by the positions to generate texture coords. The color filter LUT
effect ignores the texture coords. Thus, the compiler can optimize out the
matrix. We have an assertion that if a matrix is inserted it ought to have a
valid uniform location. We need to stop emitting this boiler plate code and move
it into a helper for custom effects that want a matrix. The temporary workaround
is to ensure the matrix is identity so that we don't emit it.
On 2012/07/20 16:15:47, TomH wrote: > Even LGTMier. LGTM, assuming that the commented out code ...
12 years, 5 months ago
(2012-07-20 16:19:16 UTC)
#6
On 2012/07/20 16:15:47, TomH wrote:
> Even LGTMier.
LGTM, assuming that the commented out code is removed when we refactor to omit
generating texture coord matrices for custom stages with no tex coords.
Issue 6420054: Fix matrix uniform assertion when matrix is unused
(Closed)
Created 12 years, 5 months ago by bsalomon
Modified 12 years, 5 months ago
Reviewers: TomH, twiz1
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 0