[430/906] convolution: save some indirection grouping math and sampling
authorFilippo Argiolas <filippo.argiolas@gmail.com>
Mon, 26 Apr 2010 10:45:57 +0000 (12:45 +0200)
committerMatthew Waters <ystreet00@gmail.com>
Sat, 15 Mar 2014 17:36:39 +0000 (18:36 +0100)
commit0cae67172a994b0ac34973104de7e5dce8eb4019
treed1709a2eeeed3b02b0a5eaa4fa00179f372d19b0
parente7d083fcc0829b70cf67316a7bfa6a9a5acbf932
[430/906] convolution: save some indirection grouping math and sampling

Thanks to Eric Anholt I've finally understood (at least I hope) how to
count texture indirections and save up some.  Texture sampling dependent
on the result of some math counts as an indirection phase. Grouped
texture lookups with no math involved count as a single indirection.
Math on the coordinates count as indirection.
So the best thing is to group all the math involving coordinates and
then do all the lookups.
This saves enough indirections to make glfilterblur and glow effect
work, albeit a bit slowly, on i915.
gst/gl/effects/gstgleffectssources.c