intel: move away from booleans to identify platforms
v2: Drop changes around GFX_VERx10 == 75 (Luis)
v3: Replace
(GFX_VERx10 < 75 && devinfo->platform != INTEL_PLATFORM_BYT)
by
(devinfo->platform == INTEL_PLATFORM_IVB)
Replace
(devinfo->ver >= 5 || devinfo->platform == INTEL_PLATFORM_G4X)
by
(devinfo->verx10 >= 45)
Replace
(devinfo->platform != INTEL_PLATFORM_G4X)
by
(devinfo->verx10 != 45)
v4: Fix crocus typo
v5: Rebase
v6: Add GFX3, ILK & I965 platforms (Jordan)
Move ifdef to code expressions (Jordan)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12981>
This commit is contained in:
committed by
Marge Bot
parent
3b1a5b8f2b
commit
361b3fee3c
@@ -563,7 +563,7 @@ ioctl(int fd, unsigned long request, ...)
|
||||
return 0;
|
||||
|
||||
case I915_PARAM_HAS_EXEC_SOFTPIN:
|
||||
*getparam->value = devinfo.ver >= 8 && !devinfo.is_cherryview;
|
||||
*getparam->value = devinfo.ver >= 8 && devinfo.platform != INTEL_PLATFORM_CHV;
|
||||
return 0;
|
||||
|
||||
default:
|
||||
@@ -582,9 +582,9 @@ ioctl(int fd, unsigned long request, ...)
|
||||
if (device_override) {
|
||||
switch (getparam->param) {
|
||||
case I915_CONTEXT_PARAM_GTT_SIZE:
|
||||
if (devinfo.is_elkhartlake)
|
||||
if (devinfo.platform == INTEL_PLATFORM_EHL)
|
||||
getparam->value = 1ull << 36;
|
||||
else if (devinfo.ver >= 8 && !devinfo.is_cherryview)
|
||||
else if (devinfo.ver >= 8 && devinfo.platform != INTEL_PLATFORM_CHV)
|
||||
getparam->value = 1ull << 48;
|
||||
else
|
||||
getparam->value = 1ull << 31;
|
||||
|
||||
Reference in New Issue
Block a user