summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorKasireddy, Vivek <[email protected]>2019-02-12 17:03:52 -0800
committerLionel Landwerlin <[email protected]>2019-02-26 13:08:52 +0000
commit7cab8d3661f243c47874fa7e6ad30af7bd4a53d8 (patch)
tree2ec6bd221a13c2f8f35af3884974bb3331c80611 /src/intel/compiler
parent65600d0946193b786c3fa780c7e72c9dc0a49186 (diff)
i965: Add support for sampling from XYUV images
Add support to the i965 DRI driver to sample from XYUV8888 buffers. Signed-off-by: Vivek Kasireddy <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_compiler.h1
-rw-r--r--src/intel/compiler/brw_nir.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_compiler.h b/src/intel/compiler/brw_compiler.h
index b894c47ed6b..7ae38e103c6 100644
--- a/src/intel/compiler/brw_compiler.h
+++ b/src/intel/compiler/brw_compiler.h
@@ -196,6 +196,7 @@ struct brw_sampler_prog_key_data {
uint32_t yx_xuxv_image_mask;
uint32_t xy_uxvx_image_mask;
uint32_t ayuv_image_mask;
+ uint32_t xyuv_image_mask;
/* Scale factor for each texture. */
float scale_factors[32];
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
index d0b1ba6e3d2..00e3879b4dc 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -963,6 +963,7 @@ brw_nir_apply_sampler_key(nir_shader *nir,
tex_options.lower_yx_xuxv_external = key_tex->yx_xuxv_image_mask;
tex_options.lower_xy_uxvx_external = key_tex->xy_uxvx_image_mask;
tex_options.lower_ayuv_external = key_tex->ayuv_image_mask;
+ tex_options.lower_xyuv_external = key_tex->xyuv_image_mask;
/* Setup array of scaling factors for each texture. */
memcpy(&tex_options.scale_factors, &key_tex->scale_factors,