Changes between Version 16 and Version 17 of GcnMemHandling
- Timestamp:
- 02/16/25 09:00:42 (4 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GcnMemHandling
v16 v17 408 408 AOFFSET_MSB * ELEMSIZE)</code></p> 409 409 <p>The expression to calculate element size (ELEMSIZE) from ELEMSIZE field of a 410 buffer resource is: 2<<ELEMSIZE. The expression to calculate index stride (INDEXSTRIDE)411 from INDEXSTRIDE field of buffer resource is: 8<<INDEXSTRIDE.</p>410 buffer resource is: '2<<ELEMSIZE'. The expression to calculate index stride (INDEXSTRIDE) 411 from INDEXSTRIDE field of buffer resource is: '8<<INDEXSTRIDE'.</p> 412 412 <p>The 64-bit addressing can be enabled by set ADDR64 flag in instruction. In this case, 413 two VADDR registers contain san address. Expression to calculate address in this case:</p>413 two VADDR registers contain an address. Expression to calculate address in this case:</p> 414 414 <p><code>ADDRESS = BASE + VGPR_ADDRESS + OFFSET + SGPR_OFFSET // 64-bit addressing</code></p> 415 415 <p>No range checking for 64-bit mode addressing.</p> … … 602 602 </tbody> 603 603 </table> 604 <p>The 1D images require sonly width parameter.605 The 2D images require sonly width and height parameters. Pitch is optional.606 The array of 1D images require swidth, depth (for number of slices),604 <p>The 1D images require only width parameter. 605 The 2D images require only width and height parameters. Pitch is optional. 606 The array of 1D images require width, depth (for number of slices), 607 607 base and last array (BASEARRAY and LASTARRAY) indices for slices. 608 The array of 2D images require swidth, height, depth (for number of slices),608 The array of 2D images require width, height, depth (for number of slices), 609 609 base and last array (BASEARRAY and LASTARRAY) indices for slices. 610 The 3D array images require swidth, height and depth.611 The 2D cubes require swidth, height and base and last array indices of slices.610 The 3D array images require width, height and depth. 611 The 2D cubes require width, height and base and last array indices of slices. 612 612 The mipmaps are defined by setting base and last level (BASE_LEVEL and LAST_LEVEL).</p> 613 613 <p>The image types list.</p> … … 1613 1613 <p>About accuracy: Threshold of coordinates for image's sampling are 1/256 of distance 1614 1614 between pixels.</p> 1615 <p>The sampling of the mipmaps require snormalized coordinates.</p>1615 <p>The sampling of the mipmaps require normalized coordinates.</p> 1616 1616 <h3>Flat addressing</h3> 1617 1617 <p>By default, FLAT instructions read or write values from main memory.