Skip to content

Commit 5363e38

Browse files
committed
swap channels
1 parent 061a888 commit 5363e38

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

rtl/native_video_reader.sv

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,11 @@ wire [31:0] pixel_high_word = pixel_word[63:32];
278278
task automatic output_pixel;
279279
input [31:0] pixel;
280280
begin
281-
r_out <= pixel[7:0];
281+
// linuxfb write path lands as B,G,R,X in DDR on MiSTer; swap here
282+
// so launcher can keep doing row memcpy with no CPU-side repack.
283+
r_out <= pixel[23:16];
282284
g_out <= pixel[15:8];
283-
b_out <= pixel[23:16];
285+
b_out <= pixel[7:0];
284286
end
285287
endtask
286288

0 commit comments

Comments
 (0)