Changes between Version 13 and Version 14 of GcnInstrsMimg
- Timestamp:
- 01/17/16 19:00:26 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GcnInstrsMimg
v13 v14 1100 1100 </tbody> 1101 1101 </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> 1102 1108 <h3>Instruction set</h3> 1103 1109 <p>Alphabetically sorted instruction list:</p> … … 1379 1385 <p>Opcode: 64 (0x40)<br /> 1380 1386 Syntax: 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 choosen1382 coordinates inVADDR. Choosen component is first one bit in DMASK. The left top pixel are1387 Description: Get component's value from 4 neighboring pixels, starting from coordinates 1388 from VADDR. Choosen component is first one bit in DMASK. The left top pixel are 1383 1389 choosen from FLOOR(X-0.5) for X coordinate, FLOOR(Y-0.5) for Y coordinate. 1384 1390 Following VDATA registers stores:</p> … … 1460 1466 for (BYTE i = 0; i < BIT_CNT(DMASK); i++) 1461 1467 VDATA[i] = SEXT(VDATA[i], COMPBITS)</code></p> 1468 <h4>IMAGE_SAMPLER</h4> 1469 <p>Opcode: 32 (0x20)<br /> 1470 Syntax: IMAGE_SAMPLER VDATA(1:4), VADDR(1:4), SRSRC(4,8), SSAMP(4)<br /> 1471 Description: Get sampled pixel value from SRSRC image at address VADDR by using 1472 SSAMP sampler.</p> 1462 1473 <h4>IMAGE_STORE</h4> 1463 1474 <p>Opcode: 8 (0x8)<br />