diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2015-01-02 20:59:23 +0100 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2015-02-18 14:02:59 +0100 |
commit | 6c26ec72a5b299a5ceb3e4ca7ed0712d312da548 (patch) | |
tree | e31646f1707ff0369ec8b8053093348d476e8e2a /src/video_core/pica.h | |
parent | Pica/CommandProcessor: Work around initialized vertex attributes some more. (diff) | |
download | yuzu-6c26ec72a5b299a5ceb3e4ca7ed0712d312da548.tar yuzu-6c26ec72a5b299a5ceb3e4ca7ed0712d312da548.tar.gz yuzu-6c26ec72a5b299a5ceb3e4ca7ed0712d312da548.tar.bz2 yuzu-6c26ec72a5b299a5ceb3e4ca7ed0712d312da548.tar.lz yuzu-6c26ec72a5b299a5ceb3e4ca7ed0712d312da548.tar.xz yuzu-6c26ec72a5b299a5ceb3e4ca7ed0712d312da548.tar.zst yuzu-6c26ec72a5b299a5ceb3e4ca7ed0712d312da548.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/pica.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 9c1a12dc8..cf9dc4853 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -678,7 +678,9 @@ struct Regs { INSERT_PADDING_WORDS(0x2); struct { - u32 begin_load; + // Offset of the next instruction to write code to. + // Incremented with each instruction write. + u32 offset; // Writing to these registers sets the "current" word in the shader program. // TODO: It's not clear how the hardware stores what the "current" word is. @@ -690,7 +692,9 @@ struct Regs { // This register group is used to load an internal table of swizzling patterns, // which are indexed by each shader instruction to specify vector component swizzling. struct { - u32 begin_load; + // Offset of the next swizzle pattern to write code to. + // Incremented with each instruction write. + u32 offset; // Writing to these registers sets the "current" swizzle pattern in the table. // TODO: It's not clear how the hardware stores what the "current" swizzle pattern is. |