glsl/tests/optimization-test: add fallback srcdir/abs_builddir defines
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 23 Feb 2017 14:27:08 +0000 (14:27 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:23 +0000 (15:31 +0100)
commit44b642225820a8372461a14e11df60afc5cc9289
tree356da024e5ed89fdf2159c953d0e19db910cf77d
parent05bc5b35a7b57ca5c8be476b5c0c6ca2e59ef0ba
glsl/tests/optimization-test: add fallback srcdir/abs_builddir defines

There is no robust way to detect either one, so simply hope for the best
and warn just in case.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/glsl/tests/optimization-test.sh