diff options
author | Jason Ekstrand <[email protected]> | 2015-08-09 23:45:44 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-08-12 08:28:31 -0700 |
commit | 28d1a506c8d09fa66170978c85566c34cbf1cc0a (patch) | |
tree | f9c8d3b22b4dfa0ea347e8083f1cdcc0ec514b14 /include | |
parent | 3941539179b72fe25b6dffd1aacc0722d198a5ca (diff) |
mesa/formats: Fix swizzle flipping for big-endian targets
The swizzle defines where in the format you should look for any given
channel. When we flip the format around for BE targets, we need to change
the destinations of the swizzles, not the sources. For example, say the
format is an RGBX format with a swizzle of xyz1 on LE. Then it should be
wzy1 on BE; however, the code as it was before, would have made it 1zyx on
BE which is clearly wrong.
Reviewed-by: Iago Toral <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Cc: "10.6 10.5" <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions