diff options
| author | 2017-05-05 21:33:32 -0700 | |
|---|---|---|
| committer | 2017-05-05 21:33:32 -0700 | |
| commit | 2a01a03375401f4110a3a80de8ebf9bd48e46bc7 (patch) | |
| tree | 91c3dd5e60e0d977406b8e39adc1732d09a9d1ce /src/video_core/regs_texturing.h | |
| parent | Create a random console_unique_id (#2668) (diff) | |
| parent | pica: shader_dirty if texture2 coord changed (diff) | |
| download | yuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.tar.gz yuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.tar.xz yuzu-2a01a03375401f4110a3a80de8ebf9bd48e46bc7.zip | |
Merge pull request #2686 from wwylele/tex-coord-reg
pica: use correct coordinates for texture 2
Diffstat (limited to 'src/video_core/regs_texturing.h')
| -rw-r--r-- | src/video_core/regs_texturing.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/video_core/regs_texturing.h b/src/video_core/regs_texturing.h index 0b62da145..8a7c6efe4 100644 --- a/src/video_core/regs_texturing.h +++ b/src/video_core/regs_texturing.h | |||
| @@ -122,7 +122,11 @@ struct TexturingRegs { | |||
| 122 | BitField<0, 1, u32> texture0_enable; | 122 | BitField<0, 1, u32> texture0_enable; |
| 123 | BitField<1, 1, u32> texture1_enable; | 123 | BitField<1, 1, u32> texture1_enable; |
| 124 | BitField<2, 1, u32> texture2_enable; | 124 | BitField<2, 1, u32> texture2_enable; |
| 125 | }; | 125 | BitField<8, 2, u32> texture3_coordinates; // TODO: unimplemented |
| 126 | BitField<10, 1, u32> texture3_enable; // TODO: unimplemented | ||
| 127 | BitField<13, 1, u32> texture2_use_coord1; | ||
| 128 | BitField<16, 1, u32> clear_texture_cache; // TODO: unimplemented | ||
| 129 | } main_config; | ||
| 126 | TextureConfig texture0; | 130 | TextureConfig texture0; |
| 127 | INSERT_PADDING_WORDS(0x8); | 131 | INSERT_PADDING_WORDS(0x8); |
| 128 | BitField<0, 4, TextureFormat> texture0_format; | 132 | BitField<0, 4, TextureFormat> texture0_format; |
| @@ -142,9 +146,9 @@ struct TexturingRegs { | |||
| 142 | }; | 146 | }; |
| 143 | const std::array<FullTextureConfig, 3> GetTextures() const { | 147 | const std::array<FullTextureConfig, 3> GetTextures() const { |
| 144 | return {{ | 148 | return {{ |
| 145 | {texture0_enable.ToBool(), texture0, texture0_format}, | 149 | {main_config.texture0_enable.ToBool(), texture0, texture0_format}, |
| 146 | {texture1_enable.ToBool(), texture1, texture1_format}, | 150 | {main_config.texture1_enable.ToBool(), texture1, texture1_format}, |
| 147 | {texture2_enable.ToBool(), texture2, texture2_format}, | 151 | {main_config.texture2_enable.ToBool(), texture2, texture2_format}, |
| 148 | }}; | 152 | }}; |
| 149 | } | 153 | } |
| 150 | 154 | ||