Changes between Version 13 and Version 14 of GcnInstrsMimg


Ignore:
Timestamp:
01/17/16 19:00:26 (8 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GcnInstrsMimg

    v13 v14  
    11001100</tbody>
    11011101</table>
     1102<ul>
     1103<li>_L - choose LOD from VADDR from last register, after other components.</li>
     1104<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>
     1106<li>_O - apply offset to image's address (add X, Y and Z offset to X, Y and Z coordinates).</li>
     1107</ul>
    11021108<h3>Instruction set</h3>
    11031109<p>Alphabetically sorted instruction list:</p>
     
    13791385<p>Opcode: 64 (0x40)<br />
    13801386Syntax: IMAGE_GATHER4 VDATA(4), VADDR(1:4), SRSRC(4,8), SSAMP(4)<br />
    1381 Description: Get component's value from 4 neighboring pixels, that closest to choosen
    1382 coordinates in VADDR. Choosen component is first one bit in DMASK. The left top pixel are
     1387Description: Get component's value from 4 neighboring pixels, starting from coordinates
     1388from VADDR. Choosen component is first one bit in DMASK. The left top pixel are
    13831389choosen from FLOOR(X-0.5) for X coordinate, FLOOR(Y-0.5) for Y coordinate.
    13841390Following VDATA registers stores:</p>
     
    14601466for (BYTE i = 0; i &lt; BIT_CNT(DMASK); i++)
    14611467    VDATA[i] = SEXT(VDATA[i], COMPBITS)</code></p>
     1468<h4>IMAGE_SAMPLER</h4>
     1469<p>Opcode: 32 (0x20)<br />
     1470Syntax: IMAGE_SAMPLER VDATA(1:4), VADDR(1:4), SRSRC(4,8), SSAMP(4)<br />
     1471Description: Get sampled pixel value from SRSRC image at address VADDR by using
     1472SSAMP sampler.</p>
    14621473<h4>IMAGE_STORE</h4>
    14631474<p>Opcode: 8 (0x8)<br />