diff options
author | Roland Scheidegger <[email protected]> | 2010-10-08 20:57:50 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2010-10-09 00:36:38 +0200 |
commit | 99ade19e6e0dc9f5a4507bdcd7fb9704ca6c1df5 (patch) | |
tree | 6cd3554845ffd4829bbf3312ea0a471757a47b8b /src/glut | |
parent | 1e17e0c4ffc0f1d1b9170c5574606172998c8917 (diff) |
gallivm: optimize some tex wrap mode calculations a bit
Sometimes coords are clamped to positive numbers before doing conversion
to int, or clamped to 0 afterwards, in this case can use itrunc
instead of ifloor which is easier. This is only the case for nearest
calculations unfortunately, except linear MIRROR_CLAMP_TO_EDGE which
for the same reason can use a unsigned float build context so the
ifloor_fract helper can reduce this to itrunc in the ifloor helper itself.
Diffstat (limited to 'src/glut')
0 files changed, 0 insertions, 0 deletions