mirror of https://github.com/PCSX2/pcsx2.git
GregMiscellaneous: zzogl-pg: restore the reverse order loop
git-svn-id: http://pcsx2.googlecode.com/svn/branches/GregMiscellaneous@3847 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
703927056e
commit
175afa91b1
|
@ -3060,6 +3060,9 @@ __forceinline void update_4pixels(u32* src, Tdst* basepage, u32 i_msk, u32 j, u3
|
||||||
Tdst* dst_tmp;
|
Tdst* dst_tmp;
|
||||||
Tdst dsrc_tmp;
|
Tdst dsrc_tmp;
|
||||||
|
|
||||||
|
// Note: Future improvement. GetPixelAddress, WritePixel need some improvement
|
||||||
|
// but can probably be used after their re-write
|
||||||
|
|
||||||
dst_tmp = basepage + pageTable[i_msk][(INDEX)];
|
dst_tmp = basepage + pageTable[i_msk][(INDEX)];
|
||||||
if (do_conversion) {
|
if (do_conversion) {
|
||||||
dsrc_tmp = RGBA32to16(src[RW((j<<6)+INDEX)]);
|
dsrc_tmp = RGBA32to16(src[RW((j<<6)+INDEX)]);
|
||||||
|
@ -3163,7 +3166,8 @@ __forceinline void update_4pixels_sse2(u32* src, Tdst* basepage, u32 i_msk, u32
|
||||||
_mm_store_si128((__m128i*)src_tmp, pixels);
|
_mm_store_si128((__m128i*)src_tmp, pixels);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Group 4 pixel to allow futur sse optimization of the convfn function
|
// Note: Future improvement. GetPixelAddress, WritePixel need some improvement
|
||||||
|
// but can probably be used after their re-write
|
||||||
dst_tmp = basepage + pageTable[i_msk][(INDEX)];
|
dst_tmp = basepage + pageTable[i_msk][(INDEX)];
|
||||||
*dst_tmp = (Tdst)src_tmp[0] | (*dst_tmp & imask);
|
*dst_tmp = (Tdst)src_tmp[0] | (*dst_tmp & imask);
|
||||||
|
|
||||||
|
@ -3231,8 +3235,8 @@ void Resolve_32b(const void* psrc, int fbp, int fbw, int fbh, u32 fbm)
|
||||||
for(int i = maxfbh-1; i >= 0; --i) {
|
for(int i = maxfbh-1; i >= 0; --i) {
|
||||||
u32 i_div = (i / size) * fbw_div;
|
u32 i_div = (i / size) * fbw_div;
|
||||||
u32 i_msk = i & (size-1);
|
u32 i_msk = i & (size-1);
|
||||||
// for(int j = fbw_div-1; j >= 0; --j) {
|
for(int j = fbw_div-1; j >= 0; --j) {
|
||||||
for(u32 j = 0 ; j < fbw_div; ++j) {
|
// for(u32 j = 0 ; j < fbw_div; ++j) {
|
||||||
Tdst* basepage = pPageOffset + (i_div + j) * 2048;
|
Tdst* basepage = pPageOffset + (i_div + j) * 2048;
|
||||||
#ifdef ZEROGS_SSE2
|
#ifdef ZEROGS_SSE2
|
||||||
update_4pixels_sse2<size, pageTable, Tdst, do_conversion, 0>(src, basepage, i_msk, j, mask, imask);
|
update_4pixels_sse2<size, pageTable, Tdst, do_conversion, 0>(src, basepage, i_msk, j, mask, imask);
|
||||||
|
|
Loading…
Reference in New Issue