glsl: teach std140_base_alignment about samplers
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 14 Feb 2015 03:03:47 +0000 (22:03 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 19 Feb 2015 05:28:34 +0000 (00:28 -0500)
commit1ec715ce8b126da3cfe3b383054f9a176960c218
treef0a7ce6b9c322843d2e2e4a64e11329e55bd8414
parentfe23bb85baa22dc06638c3ea8cbe5e6ee17bfa4a
glsl: teach std140_base_alignment about samplers

These functions are about to be used more aggressively for determining
uniform layout. Samplers may be inside of structs, and it's easier to
reuse the existing base alignment logic.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/glsl/glsl_types.cpp