i965/i915: Add colorspace support to YUV sampling
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6122>
This commit is contained in:
@@ -210,6 +210,8 @@ struct brw_sampler_prog_key_data {
|
||||
uint32_t xy_uxvx_image_mask;
|
||||
uint32_t ayuv_image_mask;
|
||||
uint32_t xyuv_image_mask;
|
||||
uint32_t bt709_mask;
|
||||
uint32_t bt2020_mask;
|
||||
|
||||
/* Scale factor for each texture. */
|
||||
float scale_factors[32];
|
||||
|
@@ -1073,6 +1073,8 @@ brw_nir_apply_sampler_key(nir_shader *nir,
|
||||
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;
|
||||
tex_options.bt709_external = key_tex->bt709_mask;
|
||||
tex_options.bt2020_external = key_tex->bt2020_mask;
|
||||
|
||||
/* Setup array of scaling factors for each texture. */
|
||||
memcpy(&tex_options.scale_factors, &key_tex->scale_factors,
|
||||
|
Reference in New Issue
Block a user