Changeset 3122 in CLRX


Ignore:
Timestamp:
Jun 2, 2017, 7:18:43 PM (2 years ago)
Author:
matszpk
Message:

CLRadeonExtender: AmdCL2BinGen: Fixed userDataNum (userSGPRNum) for GFX900.

File:
1 edited

Legend:

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

    r3118 r3122  
    11321132    const uint32_t localPart = (storeLocalSize) ? (((config.localSize+511)>>9)<<15) : 0;
    11331133   
    1134     cxuint userDatasNum = 4;
     1134    const bool isGCN14 = arch >= GPUArchitecture::GCN1_4;
     1135    cxuint userDatasNum = isGCN14 ? 6 : 4;
    11351136    if (config.useGeneric)
    11361137        userDatasNum = 12;
     
    11381139        userDatasNum = 10;
    11391140    else if (config.useSetup)
    1140         userDatasNum = 8;
     1141        userDatasNum = isGCN14 ? 10 : 8;
    11411142    else if (config.useArgs)
    1142         userDatasNum = 6;
     1143        userDatasNum = isGCN14 ? 8 : 6;
     1144   
    11431145    return (config.pgmRSRC2 & 0xffffe440U) | (userDatasNum<<1) |
    11441146            ((config.tgSize) ? 0x400 : 0) | ((config.scratchBufferSize)?1:0) | dimValues |
Note: See TracChangeset for help on using the changeset viewer.