diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-05-18 20:48:43 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-05-19 17:41:23 +0000 |
commit | ae705387a968baf6ba36e887977c387b35fbec25 (patch) | |
tree | a9aa217948cd47e347604e9ed4134ed3add06506 /.editorconfig | |
parent | 3645c781ab16c3e425916ff29745e3138197d8ab (diff) |
panfrost/decode: Decode blend constant
This adds a forgotten decode line on Midgard and adds the field of a
blend constant on Bifrost. The Bifrost encoding is fairly weird; whereas
Midgard is just a regular 32-bit float, Bifrost uses a fancy
fixed-point-esque encoding. The decode logic here is experimentally
correct. The encode logic is a sort of "guesstimate", assuming that the
high byte is just int(f / 255.0) and then solving algebraicly for the
low byte. This might be slightly off in some cases.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Ryan Houdek <[email protected]>
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions