diff options
author | Johnson Lin <[email protected]> | 2017-06-16 13:51:34 +0800 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-06-30 10:16:26 +0100 |
commit | 165e704719b85cb43156f517803dd9a1f0187519 (patch) | |
tree | 568ade99104d7ff74607c4237a5384d815accfc8 /src/intel | |
parent | 8ff4be44b727ccd4452f426391c8a05b264e30dc (diff) |
i965/i915: Add UYVY as the supported format
Trigger the correct sampler options for it. Similar with YUYV
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_compiler.h | 1 | ||||
-rw-r--r-- | src/intel/compiler/brw_nir.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h index 78873744ce5..3f383403883 100644 --- a/src/intel/compiler/brw_compiler.h +++ b/src/intel/compiler/brw_compiler.h @@ -168,6 +168,7 @@ struct brw_sampler_prog_key_data { uint32_t y_u_v_image_mask; uint32_t y_uv_image_mask; uint32_t yx_xuxv_image_mask; + uint32_t xy_uxvx_image_mask; }; /** diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index de8f519b4e1..49d3cf36564 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -770,6 +770,7 @@ brw_nir_apply_sampler_key(nir_shader *nir, tex_options.lower_y_uv_external = key_tex->y_uv_image_mask; tex_options.lower_y_u_v_external = key_tex->y_u_v_image_mask; tex_options.lower_yx_xuxv_external = key_tex->yx_xuxv_image_mask; + tex_options.lower_xy_uxvx_external = key_tex->xy_uxvx_image_mask; if (nir_lower_tex(nir, &tex_options)) { nir_validate_shader(nir); |