glsl/tests/optimization-test: pass glsl_test as argument
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 26 Feb 2017 20:28:21 +0000 (20:28 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:23 +0000 (15:31 +0100)
commit421115a72939b7dbcdc9f714d85f3e7616323a3e
tree20a3bf793c05b6a22917f0bb143ca6880428639e
parent7d2a1394bbdd79d059a4c1dbe96a4e38c9ed34de
glsl/tests/optimization-test: pass glsl_test as argument

Rather than hardcoding the binary location (which ends up wrong in a
number of occasions) in the python script, pass it as argument.

This allows us to remove a couple of dirname/basename workarounds that
aimed to keep this working, and succeeded in the odd occasion.

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/lower_jumps/create_test_cases.py
src/compiler/glsl/tests/optimization-test.sh