[423/906] convolution: generate gaussian kernel on the fly
authorFilippo Argiolas <filippo.argiolas@gmail.com>
Fri, 23 Apr 2010 18:06:48 +0000 (20:06 +0200)
committerMatthew Waters <ystreet00@gmail.com>
Sat, 15 Mar 2014 17:36:39 +0000 (18:36 +0100)
commit98752e51da4cb376b5f82270856ac9f42fb6e1a3
treef83be7ed85199b4bcd9331effaaa4a2d077df303
parente602d818e3d5758c2cf0bef384d7ad381123c875
[423/906] convolution: generate gaussian kernel on the fly

Generate a normalized gaussian kernel with given size and standard
deviation on the fly.
Remove "norm_const" uniform from convolution shaders and provide a
normalized kernel instead. Remove norm_offset uniform as it was always
zero, will reintroduce it if really needed in the future. Thanks to Eric
Anholt for suggesting it.
Save some ALU instruction calculating directly the coordinate for
texture lookup instead of summing an offset.
Still exceed maximum indirect texture lookups on i915, the only solution
I see is using a 3x3 kernel.
gst/gl/effects/gstgleffectglow.c
gst/gl/effects/gstgleffectssources.c
gst/gl/effects/gstgleffectssources.h
gst/gl/effects/gstgleffectxray.c
gst/gl/gstgldifferencematte.c
gst/gl/gstgldifferencematte.h
gst/gl/gstglfilterblur.c
gst/gl/gstglfilterblur.h