This commit is contained in:
Michaël Banaan Ananas 2014-08-08 19:26:02 +00:00
parent 5b08309f4a
commit daf9b4b7a4

View File

@ -3326,6 +3326,22 @@ do
/* handle alpha mask */ \
APPLY_ALPHAMASK(VV, STATS, FBZMODE, c_other.rgb.a); \
\
/* compute c_local */ \
if (FBZCP_CC_LOCALSELECT_OVERRIDE(FBZCOLORPATH) == 0) \
{ \
if (FBZCP_CC_LOCALSELECT(FBZCOLORPATH) == 0) /* iterated RGB */ \
c_local.u = ITERARGB.u; \
else /* color0 RGB */ \
c_local.u = (VV)->reg[color0].u; \
} \
else \
{ \
if (!(TEXELARGB.rgb.a & 0x80)) /* iterated RGB */ \
c_local.u = ITERARGB.u; \
else /* color0 RGB */ \
c_local.u = (VV)->reg[color0].u; \
} \
\
/* compute a_local */ \
switch (FBZCP_CCA_LOCALSELECT(FBZCOLORPATH)) \
{ \
@ -3412,22 +3428,6 @@ do
APPLY_ALPHATEST(VV, STATS, ALPHAMODE, a); \
\
\
/* compute c_local */ \
if (FBZCP_CC_LOCALSELECT_OVERRIDE(FBZCOLORPATH) == 0) \
{ \
if (FBZCP_CC_LOCALSELECT(FBZCOLORPATH) == 0) /* iterated RGB */ \
c_local.u = ITERARGB.u; \
else /* color0 RGB */ \
c_local.u = (VV)->reg[color0].u; \
} \
else \
{ \
if (!(TEXELARGB.rgb.a & 0x80)) /* iterated RGB */ \
c_local.u = ITERARGB.u; \
else /* color0 RGB */ \
c_local.u = (VV)->reg[color0].u; \
} \
\
/* select zero or c_other */ \
if (FBZCP_CC_ZERO_OTHER(FBZCOLORPATH) == 0) \
{ \
@ -3676,4 +3676,4 @@ static void raster_##name(void *destbase, INT32 y, const poly_extent *extent, co
itert1 += extra->dt1dx; \
} \
} \
}
}