nir/lower_tex: Add AYUV lowering support

Byte ordering is :

0: V
1: U
2: Y
3: A

v2: Split refactoring of alpha channel (Lionel)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> (v1)
Acked-by: Eric Engestrom <eric.engestrom@intel.com> (v2)
This commit is contained in:
Lionel Landwerlin
2018-11-08 16:28:20 +00:00
parent 0a30c33e83
commit 8a15f06d19
2 changed files with 20 additions and 0 deletions

View File

@@ -2905,6 +2905,7 @@ typedef struct nir_lower_tex_options {
unsigned lower_y_u_v_external;
unsigned lower_yx_xuxv_external;
unsigned lower_xy_uxvx_external;
unsigned lower_ayuv_external;
/**
* To emulate certain texture wrap modes, this can be used