Skip to content
Snippets Groups Projects
Commit b1284222 authored by Subv's avatar Subv
Browse files

GPU: Fixed RGBA8 as output format in a display transfer.

Verified with hwtests
parent 89a71eb6
No related branches found
No related tags found
No related merge requests found
......@@ -167,16 +167,15 @@ inline void Write(u32 addr, const T data) {
}
switch (config.output_format) {
/*case Regs::PixelFormat::RGBA8:
case Regs::PixelFormat::RGBA8:
{
// TODO: Untested
u8* dstptr = (u32*)(dest_pointer + x * 4 + y * config.output_width * 4);
dstptr[0] = source_color.r;
dstptr[1] = source_color.g;
dstptr[2] = source_color.b;
dstptr[3] = source_color.a;
u8* dstptr = dest_pointer + (x * pixel_skip + y * config.output_width) * 4;
dstptr[3] = source_color.r;
dstptr[2] = source_color.g;
dstptr[1] = source_color.b;
dstptr[0] = source_color.a;
break;
}*/
}
case Regs::PixelFormat::RGB8:
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment