r300g: Use PATH_MAX instead of limiting ourselves to 100 chars.
authorMatt Turner <mattst88@gmail.com>
Wed, 4 Mar 2015 00:02:40 +0000 (16:02 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 4 Mar 2015 19:15:09 +0000 (11:15 -0800)
commitf5e2aa1324dd6a9666bb21834097d2fbc3cb99b6
treecb8d4631b873541fc751aca436fe9379592c37fd
parent67e0a4f6e8a6c6d03cf3f9d15797bc14c373711e
r300g: Use PATH_MAX instead of limiting ourselves to 100 chars.

When built with Gentoo's package manager, the Mesa source directory
exists seven directories deep. The path to the .test file is too long
and is silently truncated, leading to a crash. Just use PATH_MAX.

Cc: 10.4, 10.5 <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=540970
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c