diff options
author | Tomeu Vizoso <[email protected]> | 2018-06-22 15:59:08 +0200 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2018-07-02 09:33:33 +0200 |
commit | e5604ef78bd56fc136f00ee39003e3996bf23c80 (patch) | |
tree | f698f83c67c7174bdd80277a71237cf514e4f950 /Android.common.mk | |
parent | 1b54824687df5170e1dd5ab701b2b76da299b851 (diff) |
st/mesa/i965: Allow decompressing ETC2 to GL_RGBA
When Mesa itself implements ETC2 decompression, it currently
decompresses to formats in the GL_BGRA component order.
That can be problematic for drivers which cannot upload the texture data
as GL_BGRA, such as Virgl when it's backed by GLES on the host.
So this commit adds a flag to _mesa_unpack_etc2_format so callers can
specify the optimal component order.
In Gallium's case, it will be requested if the format isn't in
PIPE_FORMAT_B8G8R8A8_SRGB format.
For i965, it will remain GL_BGRA, as before.
v2: * Remove unnecesary include (Emil Velikov)
Signed-off-by: Tomeu Vizoso <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'Android.common.mk')
0 files changed, 0 insertions, 0 deletions