diff options
author | Vinson Lee <vlee@freedesktop.org> | 2015-01-19 11:25:47 -0800 |
---|---|---|
committer | Vinson Lee <vlee@freedesktop.org> | 2015-01-19 11:53:18 -0800 |
commit | 76784b344606448857ad2a5484d4b41a7b812117 (patch) | |
tree | 39251a8b564f8a760d1a1279d47d160a50fb40da /generated_tests | |
parent | bbd9ad2837a2d63631500cbea2b77d2ec6f65d8c (diff) |
arb_shader_precision: Add positional argument specifiers.
Fix build errors with Python < 2.7.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Diffstat (limited to 'generated_tests')
3 files changed, 6 insertions, 6 deletions
diff --git a/generated_tests/templates/gen_shader_precision_tests/fs.mako b/generated_tests/templates/gen_shader_precision_tests/fs.mako index eadfab5bd..4ea5e50cb 100644 --- a/generated_tests/templates/gen_shader_precision_tests/fs.mako +++ b/generated_tests/templates/gen_shader_precision_tests/fs.mako @@ -33,13 +33,13 @@ void main() ## build an array of bit-level representations of the floating point results calculated above ## int resultbits[${num_elements}] = int[${num_elements}](\ -${', '.join('floatBitsToInt(result{})'.format(i) for i in indexers)}\ +${', '.join('floatBitsToInt(result{0})'.format(i) for i in indexers)}\ ); ## ## build an array of bit-level representations of the passed-in floating point expected results ## int expectedbits[${num_elements}] = int[${num_elements}](\ -${', '.join('floatBitsToInt(expected{})'.format(i) for i in indexers)}\ +${', '.join('floatBitsToInt(expected{0})'.format(i) for i in indexers)}\ ); ## ## check for differences in the sign bit for each result diff --git a/generated_tests/templates/gen_shader_precision_tests/gs.mako b/generated_tests/templates/gen_shader_precision_tests/gs.mako index ff1e4b466..2912e5514 100644 --- a/generated_tests/templates/gen_shader_precision_tests/gs.mako +++ b/generated_tests/templates/gen_shader_precision_tests/gs.mako @@ -39,13 +39,13 @@ void main() ## build an array of bit-level representations of the floating point results calculated above ## int resultbits[${num_elements}] = int[${num_elements}](\ -${', '.join('floatBitsToInt(result{})'.format(i) for i in indexers)}\ +${', '.join('floatBitsToInt(result{0})'.format(i) for i in indexers)}\ ); ## ## build an array of bit-level representations of the passed-in floating point expected results ## int expectedbits[${num_elements}] = int[${num_elements}](\ -${', '.join('floatBitsToInt(expected{})'.format(i) for i in indexers)}\ +${', '.join('floatBitsToInt(expected{0})'.format(i) for i in indexers)}\ ); ## ## check for differences in the sign bit for each result diff --git a/generated_tests/templates/gen_shader_precision_tests/vs.mako b/generated_tests/templates/gen_shader_precision_tests/vs.mako index 6df9b19f1..31b3013a8 100644 --- a/generated_tests/templates/gen_shader_precision_tests/vs.mako +++ b/generated_tests/templates/gen_shader_precision_tests/vs.mako @@ -29,13 +29,13 @@ void main() ## build an array of bit-level representations of the floating point results calculated above ## int resultbits[${num_elements}] = int[${num_elements}](\ -${', '.join('floatBitsToInt(result{})'.format(i) for i in indexers)}\ +${', '.join('floatBitsToInt(result{0})'.format(i) for i in indexers)}\ ); ## ## build an array of bit-level representations of the passed-in floating point expected results ## int expectedbits[${num_elements}] = int[${num_elements}](\ -${', '.join('floatBitsToInt(expected{})'.format(i) for i in indexers)}\ +${', '.join('floatBitsToInt(expected{0})'.format(i) for i in indexers)}\ ); ## ## check for differences in the sign bit for each result |