diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2021-09-22 15:06:58 +0300 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2021-11-08 16:48:06 +0000 |
commit | 361b3fee3c5ee38821d96660d68ebec2e31e5f47 (patch) | |
tree | 242fad1e154aa202bc33c0ab1e4f87d360622475 /src/intel/compiler/test_eu_compact.cpp | |
parent | 3b1a5b8f2ba15dfec24b80fcb3f005084c03289e (diff) | |
download | mesa-361b3fee3c5ee38821d96660d68ebec2e31e5f47.tar.gz |
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>
Diffstat (limited to 'src/intel/compiler/test_eu_compact.cpp')
-rw-r--r-- | src/intel/compiler/test_eu_compact.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/compiler/test_eu_compact.cpp b/src/intel/compiler/test_eu_compact.cpp index a7d5e919ce8..16e2e4c6100 100644 --- a/src/intel/compiler/test_eu_compact.cpp +++ b/src/intel/compiler/test_eu_compact.cpp @@ -99,7 +99,7 @@ clear_pad_bits(const struct intel_device_info *devinfo, brw_inst *inst) brw_inst_set_bits(inst, 127, 111, 0); } - if (devinfo->ver == 8 && !devinfo->is_cherryview && + if (devinfo->ver == 8 && devinfo->platform != INTEL_PLATFORM_CHV && is_3src(devinfo, brw_inst_opcode(devinfo, inst))) { brw_inst_set_bits(inst, 105, 105, 0); brw_inst_set_bits(inst, 84, 84, 0); @@ -119,7 +119,7 @@ skip_bit(const struct intel_device_info *devinfo, brw_inst *src, int bit) return true; if (is_3src(devinfo, brw_inst_opcode(devinfo, src))) { - if (devinfo->ver >= 9 || devinfo->is_cherryview) { + if (devinfo->ver >= 9 || devinfo->platform == INTEL_PLATFORM_CHV) { if (bit == 127) return true; } else { |