Changeset 3258 in CLRX


Ignore:
Timestamp:
Aug 17, 2017, 1:30:59 PM (13 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Yet another fixes for GCN1.4 arch (RX VEGA).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdbin/AmdCL2BinGen.cpp

    r3123 r3258  
    11841184    SLEV(setupData.setup1, setup1);
    11851185    uint16_t archInd = (is64Bit) ? 0xa : 0x2;
    1186     SLEV(setupData.archInd, (arch==GPUArchitecture::GCN1_2 && newBinaries) ?
     1186    SLEV(setupData.archInd, (arch>=GPUArchitecture::GCN1_2 && newBinaries) ?
    11871187                    0x40 : archInd);
    11881188    SLEV(setupData.scratchBufferSize, config.scratchBufferSize);
     
    13331333    const size_t codeWordsNum = codeSize>>2;
    13341334    const uint32_t* codeWords = reinterpret_cast<const uint32_t*>(code);
    1335     bool isGCN12 = (arch == GPUArchitecture::GCN1_2);
     1335    bool isGCN12 = (arch >= GPUArchitecture::GCN1_2);
    13361336    bool isGCN11 = (arch == GPUArchitecture::GCN1_1);
    13371337   
     
    14621462        bool usePipes)
    14631463{
    1464     const cxuint neededExtraSGPRsNum = arch==GPUArchitecture::GCN1_2 ? 4 : 2;
     1464    const cxuint neededExtraSGPRsNum = arch>=GPUArchitecture::GCN1_2 ? 4 : 2;
    14651465    const cxuint extraSGPRsNum = (config.useEnqueue) ? neededExtraSGPRsNum : 0;
    14661466    cxuint sgprsNumAll = config.usedSGPRsNum+2 + extraSGPRsNum;
Note: See TracChangeset for help on using the changeset viewer.