Skip to content

Commit c835a0a

Browse files
committed
update parallel-rdp
1 parent 4536b5a commit c835a0a

File tree

3 files changed

+54008
-48926
lines changed

3 files changed

+54008
-48926
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1f69c762be68feb9fcd5276d75acc6e5a6160a19
1+
1cecd042b2619bc505c12bfdc713808386f2b54d

src/contrib/parallel-rdp/parallel-rdp-standalone/parallel-rdp/shaders/memory_interfacing.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ void store_vram_color(uint index, uint slice)
202202
{
203203
index &= RDRAM_MASK_8;
204204
index += slice * RDRAM_SIZE;
205-
vram8.data[index ^ 3u] = mem_u8(current_color.r);
205+
uint col = (index & 1) != 0 ? current_color.g : current_color.r;
206+
vram8.data[index ^ 3u] = mem_u8(col);
206207
if ((index & 1u) != 0u)
207-
hidden_vram.data[index >> 1u] = mem_u8((current_color.r & 1) * 3);
208+
hidden_vram.data[index >> 1u] = mem_u8((col & 1) * 3);
208209
break;
209210
}
210211

0 commit comments

Comments
 (0)