Changeset 4762 in CLRX


Ignore:
Timestamp:
Jul 10, 2019, 1:26:55 PM (9 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNDisasm: Fixed dim decoding and instr size decoding for MIMG GFX10. Add testcases for dimension for MIMG instructions for GFX10.

Location:
CLRadeonExtender/trunk
Files:
2 edited

Legend:

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

    r4761 r4762  
    23692369        dregsNum++; // tfe
    23702370   
    2371     const cxuint extraCodes = ((insnCode>>2)&3);
     2371    const cxuint extraCodes = ((insnCode>>1)&3);
    23722372    // print VDATA
    23732373    decodeGCNVRegOperand((insnCode2>>8)&0xff, dregsNum, bufPtr);
  • CLRadeonExtender/trunk/tests/amdasm/GCNDisasmOpc15.cpp

    r4761 r4762  
    32053205    { { 0xf2003b00U, 0x00159d79U }, 2, "        image_load      v[157:159], "
    32063206        "v121, s[84:91] dmask:11 dim:1d unorm glc slc\n" },
     3207    /* MIMG dims */
     3208    { { 0xf2003b08U, 0x00159d79U }, 2, "        image_load      v[157:159], "
     3209        "v[121:122], s[84:91] dmask:11 dim:2d unorm glc slc\n" },
     3210    { { 0xf2003b10U, 0x00159d79U }, 2, "        image_load      v[157:159], "
     3211        "v[121:123], s[84:91] dmask:11 dim:3d unorm glc slc\n" },
     3212    { { 0xf2003b18U, 0x00159d79U }, 2, "        image_load      v[157:159], "
     3213        "v[121:123], s[84:91] dmask:11 dim:cube unorm glc slc\n" },
     3214    { { 0xf2003b20U, 0x00159d79U }, 2, "        image_load      v[157:159], "
     3215        "v[121:122], s[84:91] dmask:11 dim:1d_array unorm glc slc\n" },
     3216    { { 0xf2003b28U, 0x00159d79U }, 2, "        image_load      v[157:159], "
     3217        "v[121:123], s[84:91] dmask:11 dim:2d_array unorm glc slc\n" },
     3218    { { 0xf2003b30U, 0x00159d79U }, 2, "        image_load      v[157:159], "
     3219        "v[121:123], s[84:91] dmask:11 dim:2d_msaa unorm glc slc\n" },
     3220    { { 0xf2003b38U, 0x00159d79U }, 2, "        image_load      v[157:159], "
     3221        "v[121:124], s[84:91] dmask:11 dim:2d_msaa_array unorm glc slc\n" },
    32073222    { {}, 0, nullptr }
    32083223};
Note: See TracChangeset for help on using the changeset viewer.