]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/pat: sanity check compression and coh_mode
authorMatthew Auld <matthew.auld@intel.com>
Wed, 28 Aug 2024 09:22:58 +0000 (10:22 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 6 Sep 2024 08:35:28 +0000 (09:35 +0100)
commit1ff14648dc58b3de39b9d241607a41c833110d90
treec0317fbd4e3d8661a0bc3d32f252481786d44f6a
parent89076b5a8b4e0a01040585e156a0b014cd472fd3
drm/xe/pat: sanity check compression and coh_mode

There is an implicit assumption in the driver that compression and
coh_1way+ are mutually exclusive. If this is ever not true then userptr
and imported dma-buf from external device will have uncleared ccs state.
Add a build bug for this so we don't forget.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240828092257.169063-2-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_pat.c