Changes between Version 15 and Version 16 of GcnInstrsMimg


Ignore:
Timestamp:
01/18/16 16:00:48 (8 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GcnInstrsMimg

    v15 v16  
    11031103<li>_L - choose LOD from VADDR from last register, after other components.</li>
    11041104<li>_C - compare (by using z-compare function from sampler) fetched data from image
    1105 (first component of pixel) with Z-COMP component from VADDR.</li>
     1105(first component of pixel) with Z-COMP component from VADDR. Working only with
     1106floating point images.</li>
    11061107<li>_O - apply offset to image's address (add X, Y and Z offset to X, Y and Z coordinates).</li>
    11071108</ul>
     
    14711472Description: Get sampled pixel value from SRSRC image at address VADDR by using
    14721473SSAMP sampler.</p>
     1474<h4>IMAGE_SAMPLE_B</h4>
     1475<p>Opcode: 37 (0x25)<br />
     1476Syntax: IMAGE_SAMPLE_B VDATA(1:4), VADDR(2:5), SRSRC(4,8), SSAMP(4)<br />
     1477Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1478SSAMP sampler. The first address register holds the LOD bias value.</p>
     1479<h4>IMAGE_SAMPLE_B_CL</h4>
     1480<p>Opcode: 38 (0x26)<br />
     1481Syntax: IMAGE_SAMPLE_B_CL VDATA(1:4), VADDR(3:6), SRSRC(4,8), SSAMP(4)<br />
     1482Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1483SSAMP sampler. The first address register holds the LOD bias value.
     1484The last address register holds the clamp value.</p>
     1485<h4>IMAGE_SAMPLE_C</h4>
     1486<p>Opcode: 40 (0x28)<br />
     1487Syntax: IMAGE_SAMPLE_C VDATA(1:4), VADDR(2:5), SRSRC(4,8), SSAMP(4)<br />
     1488Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1489SSAMP sampler. The instruction performs Z-compare operation choosen in SSAMP sampler.
     1490The first address register holds the Z-compare value.</p>
     1491<h4>IMAGE_SAMPLE_C_CL</h4>
     1492<p>Opcode: 41 (0x29)<br />
     1493Syntax: IMAGE_SAMPLE_C_CL VDATA(1:4), VADDR(3:6), SRSRC(4,8), SSAMP(4)<br />
     1494Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1495SSAMP sampler. The instruction performs Z-compare operation choosen in SSAMP sampler.
     1496The first address register holds the Z-compare value. The last address register
     1497holds the clamp value.</p>
     1498<h4>IMAGE_SAMPLE_C_D</h4>
     1499<p>Opcode: 42 (0x2a)<br />
     1500Syntax: IMAGE_SAMPLE_C_D VDATA(1:4), VADDR(4:11), SRSRC(4,8), SSAMP(4)<br />
     1501Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1502SSAMP sampler. The instruction performs Z-compare operation choosen in SSAMP sampler.
     1503The first address register holds the Z-compare value. Next 2-6 address registers
     1504holds user derivatives.</p>
     1505<h4>IMAGE_SAMPLE_C_D_CL</h4>
     1506<p>Opcode: 43 (0x2b)<br />
     1507Syntax: IMAGE_SAMPLE_C_D_CL VDATA(1:4), VADDR(5:12), SRSRC(4,8), SSAMP(4)<br />
     1508Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1509SSAMP sampler. The instruction performs Z-compare operation choosen in SSAMP sampler.
     1510The first address register holds the Z-compare value. Next 2-6 address registers
     1511holds user derivatives. The last address register holds the clamp value.</p>
     1512<h4>IMAGE_SAMPLE_C_L</h4>
     1513<p>Opcode: 44 (0x2c)<br />
     1514Syntax: IMAGE_SAMPLE_C_L VDATA(1:4), VADDR(3:6), SRSRC(4,8), SSAMP(4)<br />
     1515Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1516SSAMP sampler. The instruction performs Z-compare operation choosen in SSAMP sampler.
     1517The first address register holds the Z-compare value. The last address register holds
     1518the LOD value.</p>
    14731519<h4>IMAGE_SAMPLE_CL</h4>
    14741520<p>Opcode: 33 (0x21)<br />
     
    14781524<h4>IMAGE_SAMPLE_D</h4>
    14791525<p>Opcode: 34 (0x22)<br />
    1480 Syntax: IMAGE_SAMPLE_D VDATA(1:4), VADDR(2:9), SRSRC(4,8), SSAMP(4)<br />
     1526Syntax: IMAGE_SAMPLE_D VDATA(1:4), VADDR(3:10), SRSRC(4,8), SSAMP(4)<br />
    14811527Description: Get sampled pixel value from SRSRC image at address VADDR by using
    14821528SSAMP sampler. The first 2-6 address registers holds user derivatives.</p>
     1529<h4>IMAGE_SAMPLE_D_CL</h4>
     1530<p>Opcode: 35 (0x23)<br />
     1531Syntax: IMAGE_SAMPLE_D_CL VDATA(1:4), VADDR(4:11), SRSRC(4,8), SSAMP(4)<br />
     1532Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1533SSAMP sampler. The first 2-6 address registers holds user derivatives.
     1534The last address register holds the clamp value.</p>
     1535<h4>IMAGE_SAMPLE_L</h4>
     1536<p>Opcode: 36 (0x24)<br />
     1537Syntax: IMAGE_SAMPLE_L VDATA(1:4), VADDR(2:5), SRSRC(4,8), SSAMP(4)<br />
     1538Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1539SSAMP sampler. The last address register holds the LOD value.</p>
     1540<h4>IMAGE_SAMPLE_LZ</h4>
     1541<p>Opcode: 39 (0x27)<br />
     1542Syntax: IMAGE_SAMPLE_LZ VDATA(1:4), VADDR(1:4), SRSRC(4,8), SSAMP(4)<br />
     1543Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1544SSAMP sampler. Force use of mipmap level 0 (???).</p>
    14831545<h4>IMAGE_STORE</h4>
    14841546<p>Opcode: 8 (0x8)<br />