Added a force byte mode variable to prevent dword mode from operating due to glitches in the S3 acceleration using said mode.

This commit is contained in:
TC1995
2021-09-06 13:03:50 +02:00
parent 9035dbcdf5
commit 4f5a78a8b9
4 changed files with 225 additions and 157 deletions

View File

@@ -153,6 +153,7 @@ typedef struct svga_t
/*Force CRTC to dword mode, regardless of CR14/CR17. Required for S3 enhanced mode*/
int force_dword_mode;
int force_byte_mode;
int remap_required;
uint32_t (*remap_func)(struct svga_t *svga, uint32_t in_addr);

View File

@@ -101,7 +101,7 @@ void svga_recalc_remap_func(svga_t *svga)
{
int func_nr;
if (svga->fb_only)
if (svga->fb_only || svga->force_byte_mode)
func_nr = 0;
else {
if (svga->force_dword_mode)