[Video] Remove UMAmode

This commit is contained in:
zilmar 2017-07-22 18:33:13 +10:00
parent 1d26f5b0c1
commit 5a42c92eaf
6 changed files with 16 additions and 48 deletions

View File

@ -473,7 +473,6 @@ int InitGfx()
// 2Mb Texture boundary
voodoo.has_2mb_tex_boundary = (SST_type < GR_SSTTYPE_Banshee) && !evoodoo;
// we get better texture cache hits with UMA on
gfxEnable(GR_TEXTURE_UMA_EXT);
WriteTrace(TraceGlide64, TraceDebug, "Using TEXUMA extension");
ChangeSize();

View File

@ -155,8 +155,6 @@ int viewport_width, viewport_height, g_viewport_offset = 0, nvidia_viewport_hack
int save_w, save_h;
int lfb_color_fmt;
float invtex[2];
//Gonetz
int UMAmode = 0; //support for VSA-100 UMA mode;
#ifdef _WIN32
static HDC hDC = NULL;
@ -1667,13 +1665,6 @@ void grConfigWrapperExt(FxI32 vram, FxBool fbo, FxBool aniso)
config.anisofilter = aniso;
}
void gfxEnable(GrEnableMode_t mode)
{
WriteTrace(TraceGlitch, TraceDebug, "-");
if (mode == GR_TEXTURE_UMA_EXT)
UMAmode = 1;
}
void gfxLoadGammaTable(FxU32 nentries, FxU32 *red, FxU32 *green, FxU32 *blue)
{
}

View File

@ -141,19 +141,13 @@ void free_textures()
FxU32 gfxTexMinAddress(GrChipID_t tmu)
{
WriteTrace(TraceGlitch, TraceDebug, "tmu = %d", tmu);
if (UMAmode)
return 0;
else
return tmu*TMU_SIZE;
}
FxU32 gfxTexMaxAddress(GrChipID_t tmu)
{
WriteTrace(TraceGlitch, TraceDebug, "tmu = %d", tmu);
if (UMAmode)
return TMU_SIZE * 2 - 1;
else
return tmu*TMU_SIZE + TMU_SIZE - 1;
}
FxU32 gfxTexTextureMemRequired(FxU32 evenOdd, GrTexInfo *info)

View File

@ -298,8 +298,6 @@ int viewport_width, viewport_height, g_viewport_offset = 0, nvidia_viewport_hack
int save_w, save_h;
int lfb_color_fmt;
float invtex[2];
//Gonetz
int UMAmode = 0; //support for VSA-100 UMA mode;
#ifdef _WIN32
static HDC hDC = NULL;
@ -1932,13 +1930,6 @@ void grConfigWrapperExt(FxI32 vram, FxBool fbo, FxBool aniso)
config.anisofilter = aniso;
}
void gfxEnable(GrEnableMode_t mode)
{
WriteTrace(TraceGlitch, TraceDebug, "-");
if (mode == GR_TEXTURE_UMA_EXT)
UMAmode = 1;
}
#ifdef _WIN32
static void CorrectGamma(LPVOID apGammaRamp)
{

View File

@ -142,19 +142,13 @@ void free_textures()
FxU32 gfxTexMinAddress(GrChipID_t tmu)
{
WriteTrace(TraceGlitch, TraceDebug, "tmu = %d", tmu);
if (UMAmode)
return 0;
else
return tmu*TMU_SIZE;
}
FxU32 gfxTexMaxAddress(GrChipID_t tmu)
{
WriteTrace(TraceGlitch, TraceDebug, "tmu = %d", tmu);
if (UMAmode)
return TMU_SIZE * 2 - 1;
else
return tmu*TMU_SIZE + TMU_SIZE - 1;
}
FxU32 gfxTexTextureMemRequired(FxU32 evenOdd, GrTexInfo *info)

View File

@ -64,7 +64,6 @@ FxBool gfxLfbUnlock(GrLock_t type, GrBuffer_t buffer);
FxBool gfxLfbReadRegion(GrBuffer_t src_buffer, FxU32 src_x, FxU32 src_y, FxU32 src_width, FxU32 src_height, FxU32 dst_stride, void *dst_data);
FxBool gfxLfbWriteRegion(GrBuffer_t dst_buffer, FxU32 dst_x, FxU32 dst_y, GrLfbSrcFmt_t src_format, FxU32 src_width, FxU32 src_height, FxBool pixelPipeline, FxI32 src_stride, void *src_data);
FxU32 gfxTexCalcMemRequired(GrLOD_t lodmin, GrLOD_t lodmax, GrAspectRatio_t aspect, GrTextureFormat_t fmt);
void gfxEnable(GrEnableMode_t mode);
void gfxLoadGammaTable(FxU32 nentries, FxU32 *red, FxU32 *green, FxU32 *blue);
void gfxGetGammaTableExt(FxU32 /*nentries*/, FxU32 *red, FxU32 *green, FxU32 *blue);
void gfxGammaCorrectionRGB(FxFloat gammaR, FxFloat gammaG, FxFloat gammaB);