i965: remove scaling factors from P010, P012
authorTapani Pälli <tapani.palli@intel.com>
Wed, 13 Mar 2019 10:13:09 +0000 (12:13 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 14 Mar 2019 05:41:44 +0000 (07:41 +0200)
commit3b41175c22e14775656e13d11ca84cad83837b04
tree17e84a36d02fd9a8f6f9dcc1ebf83aaf2b9c26e0
parent489bf2de237a190b966a412efda89d12d1daacde
i965: remove scaling factors from P010, P012

Patch removes scaling factors introduced in 2a2e69f975b but leaves
option to use scaling in place as it could be useful with other upcoming
YUV formats.

We did this scaling because ffmpeg was shifting channel bits down, however
it seems this is not the right place as compositor wants to flip same
buffers directly to display as well and therefore bitshifting needs to be
done by the client when receiving frame from ffmpeg.

Now P0x formats are treated the same, e.g. P010 is same as P016 but with
lower 6 bits set to zeros.

Fixes: 2a2e69f975b "i965: add P0x formats and propagate required scaling factors"
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/intel_screen.c