Changeset 3319 in CLRX


Ignore:
Timestamp:
Sep 6, 2017, 7:21:06 PM (13 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmAmdCL2: Do not apply LDS size to pgmrsrc2 in HSA configuration.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/AsmAmdCL2Format.cpp

    r3318 r3319  
    19251925    const GPUArchitecture arch = getGPUArchitectureFromDeviceType(assembler.deviceType);
    19261926    cxuint maxTotalSgprsNum = getGPUMaxRegistersNum(arch, REGTYPE_SGPR, 0);
    1927     const cxuint ldsShift = arch<GPUArchitecture::GCN1_1 ? 8 : 9;
    1928     const uint32_t ldsMask = (1U<<ldsShift)-1U;
    19291927   
    19301928    // driver version setup
     
    21322130                            (userSGPRsNum<<1) | ((config.tgSize) ? 0x400 : 0) |
    21332131                            ((config.workitemPrivateSegmentSize)?1:0) | dimValues |
    2134                             (((config.workgroupGroupSegmentSize+ldsMask)>>ldsShift)<<15) |
    21352132                            ((uint32_t(config.exceptions)&0x7f)<<24);
    21362133           
  • CLRadeonExtender/trunk/tests/amdasm/AsmAmdCL2Format.cpp

    r3318 r3319  
    935935      maxScrachBackingMemorySize=0
    936936      computePgmRsrc1=0xac010a
    937       computePgmRsrc2=0x938d
     937      computePgmRsrc2=0x138d
    938938      enableSgprRegisterFlags=0x9
    939939      enableFeatureFlags=0xa
Note: See TracChangeset for help on using the changeset viewer.