translate_test: improve
authorLuca Barbieri <luca@luca-barbieri.com>
Thu, 12 Aug 2010 16:18:41 +0000 (18:18 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Thu, 12 Aug 2010 16:36:21 +0000 (18:36 +0200)
commit4d946c4e8adf3f0ac447b6a9a6caf17392b816cd
treed1bf29d15be1c79c838bee708d4c45f628bc9683
parentf668ea11bd0b1f662e0be523a4bc46835e011ffa
translate_test: improve

1. Generate random data specifically for float and doubles, so that
   they end up in [0, 1] range
2. Don't test useless conversions like SCALED <-> NORM
3. Poison the buffers before testing
src/gallium/tests/unit/translate_test.c