From 77ffe6106ef4d9f3b66463033eaf2b0e6eefbf33 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 19 Oct 2017 11:48:28 +0700 Subject: [PATCH] Split othermode::textureConvert on 3 bits. --- src/gDP.cpp | 2 +- src/gDP.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gDP.cpp b/src/gDP.cpp index 2c645706..e98de369 100644 --- a/src/gDP.cpp +++ b/src/gDP.cpp @@ -39,7 +39,7 @@ void gDPSetOtherMode( u32 mode0, u32 mode1 ) AlphaDitherText[gDP.otherMode.alphaDither], ColorDitherText[gDP.otherMode.colorDither], CombineKeyText[gDP.otherMode.combineKey], - TextureConvertText[gDP.otherMode.textureConvert], + TextureConvertText[gDP.otherMode.convert_one | (gDP.otherMode.bi_lerp1 << 1) | (gDP.otherMode.bi_lerp0 << 2)], TextureFilterText[gDP.otherMode.textureFilter], TextureLUTText[gDP.otherMode.textureLUT], TextureLODText[gDP.otherMode.textureLOD], diff --git a/src/gDP.h b/src/gDP.h index 8c93e3a0..10ffa21b 100644 --- a/src/gDP.h +++ b/src/gDP.h @@ -162,7 +162,11 @@ struct gDPInfo unsigned int colorDither : 2; unsigned int combineKey : 1; - unsigned int textureConvert : 3; +// unsigned int textureConvert : 3; + unsigned int convert_one : 1; + unsigned int bi_lerp1 : 1; + unsigned int bi_lerp0 : 1; + unsigned int textureFilter : 2; unsigned int textureLUT : 2;