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:
David Stevens
2020-07-30 18:44:41 +09:00
committed by Marge Bot
parent d8fdb8dab4
commit 6c11a7994d
5 changed files with 17 additions and 0 deletions

View File

@@ -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];