File tree Expand file tree Collapse file tree 3 files changed +172
-108
lines changed Expand file tree Collapse file tree 3 files changed +172
-108
lines changed Original file line number Diff line number Diff line change @@ -459,9 +459,19 @@ G4_Type getMixModeType() const {
459
459
// each flag register is 16-bit
460
460
uint32_t getNumFlagRegisters (void ) { return getPlatform () >= Xe_PVC ? 8 : 4 ; }
461
461
462
+ // each address register is 16 bits
462
463
uint32_t getNumAddrRegisters () const {
463
464
return 16 ;
464
- }
465
+ }
466
+
467
+ // each address register is 16 bits
468
+ uint32_t getNumAddrRegistersInGRFSizeSWSB () const {
469
+ if (hasMultipleALUPipes ()) {
470
+ return ((16 * G4_WSIZE) + numEltPerGRF<Type_UB>() - 1 ) / numEltPerGRF<Type_UB>();
471
+ } else {
472
+ return 0 ;
473
+ }
474
+ }
465
475
466
476
uint32_t getNumScalarRegisters (void ) {
467
477
if (enableSendIndirect ()) {
@@ -646,6 +656,8 @@ bool hasLongOperandTypeDepIssue() const {
646
656
647
657
bool hasFourALUPipes () const { return getPlatform () >= Xe_PVC; }
648
658
659
+ bool hasMultipleALUPipes () const { return hasThreeALUPipes () || hasFourALUPipes (); };
660
+
649
661
bool hasFiveALUPipes () const {
650
662
return getPlatform () >= Xe2;
651
663
}
@@ -725,10 +737,6 @@ bool hasWriteCombine() const {
725
737
return getPlatform () >= Xe2;
726
738
}
727
739
728
- bool hasA0WARHWissue () {
729
- return getPlatform () >= Xe_XeHPSDV;
730
- }
731
-
732
740
bool hasFtoPackedHFMove () const { return getPlatform () >= Xe_DG2; }
733
741
734
742
bool hasGather4PO () const { return getPlatform () <= GENX_TGLLP; }
You can’t perform that action at this time.
0 commit comments