nir: Add a lowering pass for UYVY textures

Similar with support for YUYV but with byte order difference in sampler

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
This commit is contained in:
Johnson Lin
2017-06-16 13:40:31 +08:00
committed by Lionel Landwerlin
parent 194205cd00
commit 8ff4be44b7
2 changed files with 19 additions and 0 deletions

View File

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