nir/lower_tex: add alpha channel parameter for yuv lowering
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 9 Nov 2018 10:33:37 +0000 (10:33 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 12 Nov 2018 13:22:54 +0000 (13:22 +0000)
commit0a30c33e837c1aa36398950190ccd856111bbfbc
tree312d9de7b0d4c8044f79b186861a2062408d7b54
parent97fb1a02fd5724028a485516d19f8803d023dec8
nir/lower_tex: add alpha channel parameter for yuv lowering

We're about to introduce AYUV support which provides its own alpha
channel. So give alpha as a parameter and set it to 1 on exising
formats.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/compiler/nir/nir_lower_tex.c