summaryrefslogtreecommitdiff
path: root/src/intel/compiler/brw_nir.c
diff options
context:
space:
mode:
authorAndres Calderon Jaramillo <andrescj@chromium.org>2022-05-21 16:36:23 -0700
committerMarge Bot <emma+marge@anholt.net>2023-01-09 23:48:26 +0000
commit14d7da24640dadfb55769cfc93e13ab653996fed (patch)
tree6cd66cdcdf150b835621e6be971503370cdef4d0 /src/intel/compiler/brw_nir.c
parent221f3ca17e780212b285f3bcee271582ef7f10b8 (diff)
downloadmesa-amber.tar.gz
i965: Plumb YUV range to nir_lower_tex().amber
This patch plumbs the YUV range provided through EGL_EXT_image_dma_buf_import all the way to nir_lower_tex(). v2: Account for new field in debug_sampler_recompile() (Lionel). Tested-by: Andres Calderon Jaramillo <andrescj@chromium.org> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16652>
Diffstat (limited to 'src/intel/compiler/brw_nir.c')
-rw-r--r--src/intel/compiler/brw_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
index 74a5e8881f5..80315598c77 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -1240,6 +1240,7 @@ brw_nir_apply_sampler_key(nir_shader *nir,
tex_options.lower_xyuv_external = key_tex->xyuv_image_mask;
tex_options.bt709_external = key_tex->bt709_mask;
tex_options.bt2020_external = key_tex->bt2020_mask;
+ tex_options.yuv_full_range_external = key_tex->yuv_full_range_mask;
/* Setup array of scaling factors for each texture. */
memcpy(&tex_options.scale_factors, &key_tex->scale_factors,