diff options
| author | 2015-02-22 21:04:10 -0500 | |
|---|---|---|
| committer | 2015-02-22 21:04:10 -0500 | |
| commit | 131454ab3e89e27870e1add831677247c335ad45 (patch) | |
| tree | d3fa82e266584ceb33bb791f805cb014864a5ab8 /src/core/hw/gpu.cpp | |
| parent | Merge pull request #471 from archshift/pp3ports3 (diff) | |
| parent | GPU: Fixed RGBA8 as output format in a display transfer. (diff) | |
| download | yuzu-131454ab3e89e27870e1add831677247c335ad45.tar.gz yuzu-131454ab3e89e27870e1add831677247c335ad45.tar.xz yuzu-131454ab3e89e27870e1add831677247c335ad45.zip | |
Merge pull request #598 from Subv/dpt
GPU: Fixed RGBA8 as output format in a display transfer.
Diffstat (limited to 'src/core/hw/gpu.cpp')
| -rw-r--r-- | src/core/hw/gpu.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index 880023529..e6022d69f 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp | |||
| @@ -167,16 +167,15 @@ inline void Write(u32 addr, const T data) { | |||
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | switch (config.output_format) { | 169 | switch (config.output_format) { |
| 170 | /*case Regs::PixelFormat::RGBA8: | 170 | case Regs::PixelFormat::RGBA8: |
| 171 | { | 171 | { |
| 172 | // TODO: Untested | 172 | u8* dstptr = dest_pointer + (x * pixel_skip + y * config.output_width) * 4; |
| 173 | u8* dstptr = (u32*)(dest_pointer + x * 4 + y * config.output_width * 4); | 173 | dstptr[3] = source_color.r; |
| 174 | dstptr[0] = source_color.r; | 174 | dstptr[2] = source_color.g; |
| 175 | dstptr[1] = source_color.g; | 175 | dstptr[1] = source_color.b; |
| 176 | dstptr[2] = source_color.b; | 176 | dstptr[0] = source_color.a; |
| 177 | dstptr[3] = source_color.a; | ||
| 178 | break; | 177 | break; |
| 179 | }*/ | 178 | } |
| 180 | 179 | ||
| 181 | case Regs::PixelFormat::RGB8: | 180 | case Regs::PixelFormat::RGB8: |
| 182 | { | 181 | { |