diff options
author | Wladimir J. van der Laan <[email protected]> | 2017-01-31 09:23:51 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-02-03 11:08:59 +0000 |
commit | 34cd53ca8c2652b095e090f52bbe66ffbfeced5d (patch) | |
tree | 4f4819811a65d0900ec2ed8276d4dd096564907c /src/gallium/Android.mk | |
parent | 05d1c8aa020cb61b9a53cdec92fdbf4dc56f966a (diff) |
etnaviv: Generate new sin/cos instructions on GC3000
Shaders using sin/cos instructions were not working on GC3000.
The reason for this turns out to be that these chips implement sin/cos
in a different way (but using the same opcodes):
- Need their input scaled by 1/pi instead of 2/pi.
- Output an x and y component, which need to be multiplied to
get the result.
- tex_amode needs to be set to 1.
Add a new bit to the compiler specs and generate these instructions
as necessary.
CC: <[email protected]>
Signed-off-by: Wladimir J. van der Laan <[email protected]>
Acked-by: Christian Gmeiner <[email protected]>
(cherry picked from commit fe3bb8cdb519a01e6315ce6f142827aece3d4a41)
Diffstat (limited to 'src/gallium/Android.mk')
0 files changed, 0 insertions, 0 deletions