Changeset 3830 in CLRX


Ignore:
Timestamp:
Feb 20, 2018, 10:27:50 PM (14 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmAmdCL2: Allow to use read_write access qualifier in images.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

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

    r3755 r3830  
    13741374                else if (::strcmp(name, "write_only")==0 || ::strcmp(name, "wronly")==0)
    13751375                    ptrAccess = KARG_PTR_WRITE_ONLY;
     1376                // OpenCL 2.0 allow read-write access for image
     1377                else if (cl20 && (::strcmp(name, "read_write")==0 ||
     1378                            ::strcmp(name, "rdwr")==0))
     1379                    ptrAccess = KARG_PTR_READ_WRITE;
    13761380                else if (*name!=0) // unknown
    13771381                    ASM_NOTGOOD_BY_ERROR(ptrAccessPlace, "Unknown access qualifier")
  • CLRadeonExtender/trunk/amdbin/AmdCL2Binaries.cpp

    r3712 r3830  
    422422                case 2:  // write_only image
    423423                case 3:  // read_write image
    424                     if (kindOfType==2) // not image
     424                    if (kindOfType==2) // image
    425425                    {
    426426                        arg.argType = KernelArgType::IMAGE;
Note: See TracChangeset for help on using the changeset viewer.