Changeset 3262 in CLRX


Ignore:
Timestamp:
Aug 18, 2017, 1:45:16 PM (16 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Small update for new drivers.

File:
1 edited

Legend:

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

    r3258 r3262  
    11501150static void generateKernelSetup(GPUArchitecture arch, const AmdCL2KernelConfig& config,
    11511151                FastOutputBuffer& fob, bool newBinaries, bool useLocals, bool usePipes,
    1152                 bool is64Bit)
     1152                bool is64Bit, cxuint driverVersion)
    11531153{
    11541154    fob.writeObject<uint64_t>(LEV(uint64_t(newBinaries ? 0x100000001ULL : 1ULL)));
     
    11841184    SLEV(setupData.setup1, setup1);
    11851185    uint16_t archInd = (is64Bit) ? 0xa : 0x2;
    1186     SLEV(setupData.archInd, (arch>=GPUArchitecture::GCN1_2 && newBinaries) ?
    1187                     0x40 : archInd);
     1186    SLEV(setupData.archInd, (arch>=GPUArchitecture::GCN1_2 && newBinaries &&
     1187                driverVersion <= 191205) ? (0x40|archInd) : archInd);
    11881188    SLEV(setupData.scratchBufferSize, config.scratchBufferSize);
    11891189    SLEV(setupData.localSize, config.localSize);
     
    15621562                               kernel.code, tempData.useLocals, tempData.pipesUsed!=0);
    15631563                    generateKernelSetup(arch, kernel.config, fob, false,
    1564                                 tempData.useLocals, tempData.pipesUsed!=0, input->is64Bit);
     1564                                tempData.useLocals, tempData.pipesUsed!=0, input->is64Bit,
     1565                                input->driverVersion);
    15651566                }
    15661567                fob.writeArray(kernel.codeSize, kernel.code);
     
    16111612            else
    16121613                generateKernelSetup(arch, kernel.config, fob, true, tempData.useLocals,
    1613                             tempData.pipesUsed!=0, input->is64Bit);
     1614                            tempData.pipesUsed!=0, input->is64Bit, input->driverVersion);
    16141615            fob.writeArray(tempData.codeSize, kernel.code);
    16151616            outSize += tempData.setupSize + tempData.codeSize;
Note: See TracChangeset for help on using the changeset viewer.