]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/pvc: Remove additional 3D flags from PIPE_CONTROL
authorStuart Summers <stuart.summers@intel.com>
Wed, 11 May 2022 06:02:26 +0000 (23:02 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 24 May 2022 19:26:25 +0000 (12:26 -0700)
commit1eb31338994889ac34c4f841e5d54bf10111741b
tree9d4a331ae3384820d8e899a568f8f8a161dc435e
parentfb289464f695f9d913479b4ebae9e39b057f8531
drm/i915/pvc: Remove additional 3D flags from PIPE_CONTROL

Although we already strip 3D-specific flags from PIPE_CONTROL
instructions when submitting to a compute engine, there are some
additional flags that need to be removed when the platform as a whole
lacks a 3D pipeline.  Add those restrictions here.

v2:
 - Replace LACKS_3D_PIPELINE checks with !HAS_3D_PIPELINE and add
   has_3d_pipeline to all platforms except PVC.  (Lucas)

Bspec: 47112
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220511060228.1179450-4-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/gen8_engine_cs.c
drivers/gpu/drm/i915/gt/intel_gpu_commands.h
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_device_info.h