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
@@ -4658,7 +4658,7 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr
|
||||
(instr->num_components - 1) * type_sz(dest.type);
|
||||
|
||||
bool supports_64bit_indirects =
|
||||
!devinfo->is_cherryview && !intel_device_info_is_9lp(devinfo);
|
||||
devinfo->platform != INTEL_PLATFORM_CHV && !intel_device_info_is_9lp(devinfo);
|
||||
|
||||
if (type_sz(dest.type) != 8 || supports_64bit_indirects) {
|
||||
for (unsigned j = 0; j < instr->num_components; j++) {
|
||||
@@ -6467,7 +6467,7 @@ setup_imm_df(const fs_builder &bld, double v)
|
||||
/* gfx7.5 does not support DF immediates straighforward but the DIM
|
||||
* instruction allows to set the 64-bit immediate value.
|
||||
*/
|
||||
if (devinfo->is_haswell) {
|
||||
if (devinfo->platform == INTEL_PLATFORM_HSW) {
|
||||
const fs_builder ubld = bld.exec_all().group(1, 0);
|
||||
fs_reg dst = ubld.vgrf(BRW_REGISTER_TYPE_DF, 1);
|
||||
ubld.DIM(dst, brw_imm_df(v));
|
||||
|
||||
Reference in New Issue
Block a user