Fix the colours. Wtf is wrong with NVidia?

This commit is contained in:
starfrost013
2025-03-22 15:37:14 +00:00
parent 4e4ed738b2
commit 8d4096fffc
6 changed files with 37 additions and 13 deletions

View File

@@ -24,4 +24,5 @@ nv3_color_expanded_t nv3_render_expand_color(nv3_grobj_t grobj, uint32_t color);
/* Primitives */
void nv3_render_rect(nv3_position_16_t position, nv3_size_16_t size, uint32_t color, nv3_grobj_t grobj);
void nv3_render_chroma_test(nv3_grobj_t grobj);

View File

@@ -699,6 +699,7 @@ extern const device_config_t nv3_config[];
#define NV3_PRAMDAC_COEFF_SELECT 0x68050C
#define NV3_PRAMDAC_GENERAL_CONTROL 0x680600
#define NV3_PRAMDAC_GENERAL_CONTROL_565_MODE 12
// These are all 10-bit values, but aligned to 32bits
// so treating them as 32bit should be fine