summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.h
diff options
context:
space:
mode:
authorBryan Cain <[email protected]>2011-08-27 18:32:58 -0500
committerKenneth Graunke <[email protected]>2011-08-31 12:02:18 -0700
commit478034f34a59969103237eb78bc82f9e70fe81c2 (patch)
tree124922638fd8c7f981331cc6dbb5e1ceda6bd07f /src/mesa/main/bufferobj.h
parent87679e2ea10836d89f47a37b8e94cce0d319622e (diff)
glsl: Use a separate div_to_mul_rcp lowering flag for integers.
Using multiply and reciprocal for integer division involves potentially lossy floating point conversions. This is okay for older GPUs that represent integers as floating point, but undesirable for GPUs with native integer division instructions. TGSI, for example, has UDIV/IDIV instructions for integer division, so it makes sense to handle this directly. Likewise for i965. Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Bryan Cain <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/bufferobj.h')
0 files changed, 0 insertions, 0 deletions