meta: Refactor the table of glsl_sampler structures
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 16 Dec 2013 19:52:38 +0000 (11:52 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 12 Feb 2014 00:00:12 +0000 (16:00 -0800)
commited3bc38ee7dd4a11046036432ab40f753c4644b5
treef99a60e751e755e5a7a12ed74b7810613b5ad01a
parentb514f241019c6ce5ee0905c6f0a59eae1ddc03e6
meta: Refactor the table of glsl_sampler structures

This will allow the same table of shader-per-sampler-type to be used for
paths in meta other than just mipmap generation.  This is also the
reason the declarations of the structures was moved towards the top of
the file.

v2: Code formatting change suggested by Brian.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/common/meta.c