|
From: kosmirror <kos...@us...> - 2025-11-08 21:40:09
|
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 de597f67ecd691074c2b843b14db6a2cb2132a66 (commit)
from cfb65791be19b9fb9919c261f6e175157a1f2ed2 (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 de597f67ecd691074c2b843b14db6a2cb2132a66
Author: Paul Cercueil <pa...@cr...>
Date: Thu Nov 6 11:47:45 2025 +0100
pvr: Update pvr_vertex_t to support modified non-textured polys
Modified non-textured polys don't use the argb/oargb fields, they
instead use the fields that are normally occupied by U/V coordinates to
store the argb color for the outside and inside areas.
Signed-off-by: Paul Cercueil <pa...@cr...>
-----------------------------------------------------------------------
Summary of changes:
kernel/arch/dreamcast/include/dc/pvr.h | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/kernel/arch/dreamcast/include/dc/pvr.h b/kernel/arch/dreamcast/include/dc/pvr.h
index 30aa14c3..fdefed98 100644
--- a/kernel/arch/dreamcast/include/dc/pvr.h
+++ b/kernel/arch/dreamcast/include/dc/pvr.h
@@ -659,8 +659,16 @@ typedef struct pvr_vertex {
float x; /**< \brief X coordinate */
float y; /**< \brief Y coordinate */
float z; /**< \brief Z coordinate */
- float u; /**< \brief Texture U coordinate */
- float v; /**< \brief Texture V coordinate */
+ union {
+ struct {
+ float u; /**< \brief Texture U coordinate */
+ float v; /**< \brief Texture V coordinate */
+ };
+ struct {
+ uint32_t argb0; /**< \brief Vertex color when modified, outside area */
+ uint32_t argb1; /**< \brief Vertex color when modified, inside area */
+ };
+ };
uint32_t argb; /**< \brief Vertex color */
uint32_t oargb; /**< \brief Vertex offset color */
} pvr_vertex_t;
hooks/post-receive
--
A pseudo Operating System for the Dreamcast.
|