common.lds: fix vbr alignment

This commit is contained in:
Zack Buhman 2024-12-05 20:49:04 -06:00
parent 0afda54acd
commit 366432e4af
3 changed files with 32 additions and 3 deletions

View File

@ -43,10 +43,11 @@ SECTIONS
.text.vbr ALIGN(4) : SUBALIGN(4)
{
__vbr100 = .;
KEEP(*(.vbr.100))
. = ALIGN(0x300);
. = __vbr100 + 0x300;
KEEP(*(.vbr.400))
. = ALIGN(0x200);
. = __vbr100 + 0x500;
KEEP(*(.vbr.600))
} > p1ram

View File

@ -87,6 +87,32 @@ MACAW_MULTIPASS_OBJ = \
example/macaw_multipass.elf: LDSCRIPT = $(LIB)/main.lds
example/macaw_multipass.elf: $(START_OBJ) $(MACAW_MULTIPASS_OBJ)
POPPIES_MOSAIC_OBJ = \
example/poppies_mosaic.o \
holly/video_output.o \
holly/core.o \
holly/region_array.o \
holly/background.o \
holly/ta_fifo_polygon_converter.o \
texture/poppies/poppies.data.o \
sh7091/serial.o
example/poppies_mosaic.elf: LDSCRIPT = $(LIB)/main.lds
example/poppies_mosaic.elf: $(START_OBJ) $(POPPIES_MOSAIC_OBJ)
POPPIES_MOSAIC2_OBJ = \
example/poppies_mosaic2.o \
holly/video_output.o \
holly/core.o \
holly/region_array.o \
holly/background.o \
holly/ta_fifo_polygon_converter.o \
texture/poppies/poppies.data.o \
sh7091/serial.o
example/poppies_mosaic2.elf: LDSCRIPT = $(LIB)/main.lds
example/poppies_mosaic2.elf: $(START_OBJ) $(POPPIES_MOSAIC2_OBJ)
FONT_BITMAP_OBJ = \
example/font_bitmap.o \
holly/video_output.o \

View File

@ -67,7 +67,9 @@ void core_start_render(uint32_t frame_address,
| isp_backgnd_t::skip(1);
holly.ISP_BACKGND_D = _i(1.f/100000.f);
holly.FB_W_CTRL = fb_w_ctrl::fb_dither | fb_w_ctrl::fb_packmode::_565_rgb_16bit;
holly.FB_W_CTRL = 0
//| fb_w_ctrl::fb_dither
| fb_w_ctrl::fb_packmode::_565_rgb_16bit;
constexpr uint32_t bytes_per_pixel = 2;
holly.FB_W_LINESTRIDE = (frame_width * bytes_per_pixel) / 8;