nir: add common convert_ycbcr for vulkan csc
authorJonathan Marek <jonathan@marek.ca>
Fri, 10 Apr 2020 12:34:53 +0000 (08:34 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Apr 2020 22:01:43 +0000 (22:01 +0000)
commitf8558fb1ce770a817a16bde439dd8865931f59a2
treeeb8fb43a082f6b75a1e936bf8f0a99274ee3bf61
parentc2d8a4bf176618bcbf37ef93b6ca06ecac1b1856
nir: add common convert_ycbcr for vulkan csc

Copied from anv, replaced state with passing model/range directly.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: D Scott Phillips <d.scott.phillips@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4528>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir_convert_ycbcr.c [new file with mode: 0644]
src/compiler/nir/nir_vulkan.h [new file with mode: 0644]