This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "A pseudo Operating System for the Dreamcast.".
The branch, master has been updated
via b506f90239ec1e3383d8830225494d547042aaf4 (commit)
from dd8d2eb764db4584dc77f767ba2bba13cb2daa05 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b506f90239ec1e3383d8830225494d547042aaf4
Author: Paul Cercueil <pa...@cr...>
Date: Thu Jul 10 00:30:32 2025 +0200
pvr: Extend VRAM to 16 MiB on Naomi
The Naomi has 16 MiB of VRAM.
Signed-off-by: Paul Cercueil <pa...@cr...>
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/include/dc/pvr/pvr_regs.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/kernel/arch/dreamcast/include/dc/pvr/pvr_regs.h b/kernel/arch/dreamcast/include/dc/pvr/pvr_regs.h
index 2f4180f4..74f20d06 100644
--- a/kernel/arch/dreamcast/include/dc/pvr/pvr_regs.h
+++ b/kernel/arch/dreamcast/include/dc/pvr/pvr_regs.h
@@ -30,6 +30,8 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
+#include <kos/platform.h>
+
/**** Register macros ***************************************************/
/** \defgroup pvr_registers Registers
@@ -173,7 +175,8 @@ __BEGIN_DECLS
#define PVR_RAM_BASE 0xa5000000 /**< \brief VRAM 32-bit, P2 area, PVR->VRAM */
#define PVR_RAM_INT_BASE 0xa4000000 /**< \brief VRAM 64-bit, P2 area, PVR->VRAM */
-#define PVR_RAM_SIZE (8*1024*1024) /**< \brief RAM size in bytes */
+#define PVR_RAM_SIZE_MB (KOS_PLATFORM_IS_NAOMI ? 16 : 8) /**< \brief RAM size in MiB */
+#define PVR_RAM_SIZE (PVR_RAM_SIZE_MB*1024*1024) /**< \brief RAM size in bytes */
#define PVR_RAM_TOP (PVR_RAM_BASE + PVR_RAM_SIZE) /**< \brief Top of raw PVR RAM */
#define PVR_RAM_INT_TOP (PVR_RAM_INT_BASE + PVR_RAM_SIZE) /**< \brief Top of int PVR RAM */
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|