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 | 67120270f2c3250aca49d813278b342787e3cae0 (diff) |
Pica/CommandProcessor: Properly implement shader load destination offset registers.
Diffstat (limited to 'src/video_core/pica.h')
-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 9c1a12dc..cf9dc485 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. |