nir: Add a lowering pass for YUV textures
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Mon, 2 May 2016 04:13:37 +0000 (21:13 -0700)
committerKristian Høgsberg Kristensen <krh@bitplanet.net>
Tue, 24 May 2016 17:14:56 +0000 (10:14 -0700)
commita41b57679fd659dda1b6df3286b34c13cac7811a
treef69a1b63d3dfb628f203527852fc4257fd4a0d0e
parent50c24c3ff34882864b74862abdbaa5d7dcd8730d
nir: Add a lowering pass for YUV textures

This lowers sampling from YUV textures to 1) one or more texture
instructions to sample each plane and 2) color space conversion to RGB.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_tex.c