i965: Check CCS_E compatibility for texture view rendering
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 26 Oct 2017 23:05:52 +0000 (16:05 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Tue, 31 Oct 2017 21:26:23 +0000 (14:26 -0700)
commit9e849eb8bb97259136b40dc2b06f42a81cfd3dae
treed18732b060de1ac89888b699c60fa7a27782b93d
parentc7baaafe543ee5d4756fdd034a89fdcc47429a7e
i965: Check CCS_E compatibility for texture view rendering

Only use CCS_E to render to a texture that is CCS_E-compatible with the
original texture's miptree (linear) format. This prevents render
operations from writing data that can't be decoded with the original
miptree format.

On Gen10, with the new CCS_E-enabled formats handled, this enables the
driver to pass the arb_texture_view-rendering-formats piglit test.

v2. Add a TODO for texturing. (Jason)

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c