Changeset 4969 in CLRX


Ignore:
Timestamp:
Sep 18, 2019, 2:33:26 PM (4 weeks ago)
Author:
matszpk
Message:

CLRadeonExtender: GPUId: Set zero in sgprs field in PGMRSRC2 if Navi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/utils/GPUId.cpp

    r4701 r4969  
    377377            bool debugMode, bool ieeeMode)
    378378{
    379     return ((vgprsNum-1)>>2) | (((sgprsNum-1)>>3)<<6) |
     379    const uint32_t sgprsField = arch<GPUArchitecture::GCN1_5 ? (((sgprsNum-1)>>3)<<6) : 0;
     380    return ((vgprsNum-1)>>2) | sgprsField |
    380381            ((uint32_t(floatMode)&0xff)<<12) |
    381382            (ieeeMode?1U<<23:0) | (uint32_t(priority&3)<<10) |
Note: See TracChangeset for help on using the changeset viewer.