diff options
author | Paul Berry <[email protected]> | 2011-08-12 10:20:34 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-08-16 11:00:46 -0700 |
commit | af501e2b29c7fb161671dc5b3395eee1d1b16d3f (patch) | |
tree | 87fc6636512204a4e359fd3a64d3fa88097cf482 /configs/autoconf.in | |
parent | 9e8f556b199a662c5525b9d03f52a067244fa602 (diff) |
glsl: Fix type error when lowering integer divisions
This patch fixes a bug when lowering an integer division:
x/y
to a multiplication by a reciprocal:
int(float(x)*reciprocal(float(y)))
If x was a plain int and y was an ivecN, the lowering pass
incorrectly assigned the type of the product to be float, when in fact
it should be vecN. This caused mesa to abort with an IR validation
error.
Fixes piglit tests {fs,vs}-op-div-int-ivec{2,3,4}.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'configs/autoconf.in')
0 files changed, 0 insertions, 0 deletions