intel/drm-shim: Return correct values for I915_PARAM_HAS_ALIASING_PPGTT
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 14 May 2020 23:46:32 +0000 (16:46 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 18:55:29 +0000 (18:55 +0000)
commitfec36c0668bf8f1fd477c97549a0b50f1c55cf4d
tree52ac836e3ed5ae2ffc2dd89cc3bf3bf87d05aab0
parentc8635b6fd350baaf85e87f06ffb76b080094df17
intel/drm-shim: Return correct values for I915_PARAM_HAS_ALIASING_PPGTT

It sure looks like it should be a Boolean value, but it's not.  The
values that we really want for later platforms are either 2 or 3.  The
old intel_stub.c in shader-db just always returns 3
(I915_GEM_PPGTT_FULL).  This returns the same set of values per platform
that kernel 5.6.13 would.

When using the shim for ICL with i965 driver, this fixes:

    i965 requires softpin (Kernel 4.5) on Gen10+.

Fixes: 0f4f1d70bfe ("intel: add stub_gpu tool")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5061>
src/intel/tools/intel_noop_drm_shim.c