mesa: add special case ubyte[4] / BGRA conversion function
authorBrian Paul <brianp@vmware.com>
Fri, 19 Feb 2016 15:51:51 +0000 (08:51 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 19 Feb 2016 15:51:51 +0000 (08:51 -0700)
commit8a2a1a6bd6655fd06698ab102289a19e018f314b
tree8b2422aad77425c0e876c82bb1f0b8db6500fa2c
parent44f48fead5ba62a7e5b12bbadafa2c393a5329aa
mesa: add special case ubyte[4] / BGRA conversion function

This reduces a glTexImage(GL_RGBA, GL_UNSIGNED_BYTE) hot spot in when
storing the texture as BGRA.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/main/format_utils.c