src/mame/video/n64.c
| r6820 | r6821 | |
| 339 | 339 | INLINE void BLENDER_EQUATION1_FORCE(INT32* r, INT32* g, INT32* b, int bsel_special); |
| 340 | 340 | INLINE void BLENDER_EQUATION1_NFORCE(INT32* r, INT32* g, INT32* b, int bsel_special); |
| 341 | 341 | |
| 342 | | static void (*BLENDER_EQUATION0)(INT32* r, INT32* g, INT32* b, int bsel_special); |
| 343 | | static void (*BLENDER_EQUATION1)(INT32* r, INT32* g, INT32* b, int bsel_special); |
| 344 | | |
| 345 | 342 | #include "video/rdpfb.h" |
| 346 | 343 | |
| 347 | 344 | static UINT32 (*FBWRITE_16)(UINT16*, UINT8*, UINT32, UINT32, UINT32); |
| r6820 | r6821 | |
| 396 | 393 | |
| 397 | 394 | #include "video/rdptri.h" |
| 398 | 395 | |
| 399 | | #include "video/rdpclamp.h" |
| 396 | //#include "video/rdpclamp.h" |
| 400 | 397 | |
| 401 | | static void (*CLAMP)(INT32* S, INT32* T, INT32* SFRAC, INT32* TFRAC, INT32 maxs, INT32 maxt, TILE* tex_tile); |
| 402 | | static void (*CLAMP_LIGHT)(INT32* S, INT32* T, INT32 maxs, INT32 maxt, TILE* tex_tile); |
| 403 | | static void (*CLAMP_QUICK)(INT32* S, INT32* T, INT32 maxs, INT32 maxt, int num); |
| 398 | //static void (*CLAMP)(INT32* S, INT32* T, INT32* SFRAC, INT32* TFRAC, INT32 maxs, INT32 maxt, TILE* tex_tile); |
| 399 | //static void (*CLAMP_LIGHT)(INT32* S, INT32* T, INT32 maxs, INT32 maxt, TILE* tex_tile); |
| 400 | //static void (*CLAMP_QUICK)(INT32* S, INT32* T, INT32 maxs, INT32 maxt, int num); |
| 404 | 401 | |
| 405 | 402 | static UINT8 rdp_rand_val = 0; |
| 406 | 403 | |
| r6820 | r6821 | |
| 410 | 407 | |
| 411 | 408 | static void (*MASK)(INT32* S, INT32* T, TILE* tex_tile); |
| 412 | 409 | |
| 413 | | #include "video/rdpcc.h" |
| 410 | #define NOISE |
| 411 | #include "video/rdpcc.c" |
| 412 | #undef NOISE |
| 413 | #include "video/rdpcc.c" |
| 414 | 414 | |
| 415 | | static UINT32 (*COLOR_COMBINER1)(void); |
| 416 | | static UINT32 (*COLOR_COMBINER2_C0)(void); |
| 417 | | static UINT32 (*COLOR_COMBINER2_C1)(void); |
| 418 | | |
| 419 | | #include "video/rdpshift.h" |
| 420 | | |
| 421 | | static void (*texshift)(INT32* S, INT32* T, INT32* maxs, INT32* maxt, TILE* tex_tile); |
| 422 | | |
| 423 | 415 | #define CACHE_TEXTURE_PARAMS(TEX) \ |
| 424 | | CLAMP = rdp_clamp_func[((other_modes.cycle_type == CYCLE_TYPE_COPY) ? 4 : 0) | ((TEX->cs || !TEX->mask_s) ? 2 : 0) | ((TEX->ct || !TEX->mask_t) ? 1 : 0)]; \ |
| 425 | | CLAMP_LIGHT = rdp_clamp_light_func[((other_modes.cycle_type == CYCLE_TYPE_COPY) ? 4 : 0) | ((TEX->cs || !TEX->mask_s) ? 2 : 0) | ((TEX->ct || !TEX->mask_t) ? 1 : 0)]; \ |
| 426 | | CLAMP_QUICK = rdp_clamp_quick_func[((other_modes.cycle_type == CYCLE_TYPE_COPY) ? 4 : 0) | ((TEX->cs || !TEX->mask_s) ? 2 : 0) | ((TEX->ct || !TEX->mask_t) ? 1 : 0)]; \ |
| 416 | TEXTURE_PIPELINE = rdp_texture_pipeline_func[(TEX->shift_t ? 64 : 0) | (TEX->shift_s ? 32 : 0) | ((TEX->ct || !TEX->mask_t) ? 16 : 0) | ((TEX->cs || !TEX->mask_s) ? 8 : 0) | ((other_modes.cycle_type == CYCLE_TYPE_COPY) ? 4 : 0) | (other_modes.mid_texel << 1) | other_modes.sample_type]; \ |
| 427 | 417 | MASK = rdp_mask_func[(TEX->mask_s ? 2 : 0) | (TEX->mask_t ? 1 : 0)]; \ |
| 428 | | texshift = rdp_shift_func[(TEX->shift_s ? 2 : 0) | (TEX->shift_t ? 1 : 0)]; \ |
| 429 | 418 | cached_twidth = TEX->line; \ |
| 430 | 419 | cached_tbase = TEX->tmem; \ |
| 431 | 420 | cached_tpal = (TEX->palette & 0xf) << 4; \ |
| r6820 | r6821 | |
| 2002 | 1991 | { |
| 2003 | 1992 | inv_pixel_color.i.a = 0xff - *blender1b_a[0]; |
| 2004 | 1993 | |
| 2005 | | BLENDER_EQUATION0(&r, &g, &b, special_bsel0); |
| 1994 | if(other_modes.force_blend) |
| 1995 | { |
| 1996 | BLENDER_EQUATION0_FORCE(&r, &g, &b, special_bsel0); |
| 1997 | } |
| 1998 | else |
| 1999 | { |
| 2000 | BLENDER_EQUATION0_NFORCE(&r, &g, &b, special_bsel0); |
| 2001 | } |
| 2006 | 2002 | } |
| 2007 | 2003 | |
| 2008 | 2004 | return (FBWRITE_32(fb,r,g,b)); |
| r6820 | r6821 | |
| 2046 | 2042 | |
| 2047 | 2043 | inv_pixel_color.i.a = 0xff - *blender1b_a[0]; |
| 2048 | 2044 | |
| 2049 | | BLENDER_EQUATION0(&r, &g, &b, special_bsel0); |
| 2045 | if(other_modes.force_blend) |
| 2046 | { |
| 2047 | BLENDER_EQUATION0_FORCE(&r, &g, &b, special_bsel0); |
| 2048 | } |
| 2049 | else |
| 2050 | { |
| 2051 | BLENDER_EQUATION0_NFORCE(&r, &g, &b, special_bsel0); |
| 2052 | } |
| 2050 | 2053 | |
| 2051 | 2054 | blended_pixel_color.i.r = r; |
| 2052 | 2055 | blended_pixel_color.i.g = g; |
| r6820 | r6821 | |
| 2066 | 2069 | { |
| 2067 | 2070 | inv_pixel_color.i.a = 0xff - *blender1b_a[1]; |
| 2068 | 2071 | |
| 2069 | | BLENDER_EQUATION1(&r, &g, &b, special_bsel1); |
| 2072 | if(other_modes.force_blend) |
| 2073 | { |
| 2074 | BLENDER_EQUATION1_FORCE(&r, &g, &b, special_bsel1); |
| 2075 | } |
| 2076 | else |
| 2077 | { |
| 2078 | BLENDER_EQUATION1_NFORCE(&r, &g, &b, special_bsel1); |
| 2079 | } |
| 2070 | 2080 | } |
| 2071 | 2081 | |
| 2072 | 2082 | return (FBWRITE_32(fb,r,g,b)); |
| r6820 | r6821 | |
| 2132 | 2142 | for (i=x1; i <= x2; i++) |
| 2133 | 2143 | { |
| 2134 | 2144 | curpixel_cvg = fill_cvg; |
| 2135 | | c.c = COLOR_COMBINER1(); |
| 2145 | COLOR_COMBINER1(c); |
| 2136 | 2146 | BLENDER1_32(&fb[(index + i)], c); |
| 2137 | 2147 | } |
| 2138 | 2148 | } |
| r6820 | r6821 | |
| 2146 | 2156 | for (i=x1; i <= x2; i++) |
| 2147 | 2157 | { |
| 2148 | 2158 | curpixel_cvg = fill_cvg; |
| 2149 | | c1.c = COLOR_COMBINER2_C0(); |
| 2150 | | c2.c = COLOR_COMBINER2_C1(); |
| 2159 | COLOR_COMBINER2_C0(c1); |
| 2160 | COLOR_COMBINER2_C1(c2); |
| 2151 | 2161 | BLENDER2_32(&fb[(index + i)], c1, c2); |
| 2152 | 2162 | } |
| 2153 | 2163 | } |
| r6820 | r6821 | |
| 2235 | 2245 | texel0_color.c = TEXTURE_PIPELINE(ss, st, tex_tile); |
| 2236 | 2246 | } |
| 2237 | 2247 | |
| 2238 | | c.c = COLOR_COMBINER1(); |
| 2248 | COLOR_COMBINER1(c); |
| 2239 | 2249 | |
| 2240 | 2250 | BLENDER1_32(&fb[(fb_index + i)], c); |
| 2241 | 2251 | |
| r6820 | r6821 | |
| 2276 | 2286 | texel1_color.c = TEXTURE_PIPELINE(ss, st, tex_tile2); |
| 2277 | 2287 | } |
| 2278 | 2288 | |
| 2279 | | c1.c = COLOR_COMBINER2_C0(); |
| 2280 | | c2.c = COLOR_COMBINER2_C1(); |
| 2289 | COLOR_COMBINER2_C0(c1); |
| 2290 | COLOR_COMBINER2_C1(c2); |
| 2281 | 2291 | |
| 2282 | 2292 | BLENDER2_32(&fb[(fb_index + i)], c1, c2); |
| 2283 | 2293 | |
| r6820 | r6821 | |
| 2503 | 2513 | |
| 2504 | 2514 | if (other_modes.cycle_type == CYCLE_TYPE_1) |
| 2505 | 2515 | { |
| 2506 | | c1.c = COLOR_COMBINER1(); |
| 2516 | COLOR_COMBINER1(c1); |
| 2507 | 2517 | } |
| 2508 | 2518 | else if (other_modes.cycle_type == CYCLE_TYPE_2) |
| 2509 | 2519 | { |
| 2510 | | c1.c = COLOR_COMBINER2_C0(); |
| 2511 | | c2.c = COLOR_COMBINER2_C1(); |
| 2520 | COLOR_COMBINER2_C0(c1); |
| 2521 | COLOR_COMBINER2_C1(c2); |
| 2512 | 2522 | } |
| 2513 | 2523 | |
| 2514 | 2524 | if ((zbuffer || other_modes.z_source_sel) && other_modes.z_compare_en) |
| r6820 | r6821 | |
| 3640 | 3650 | render_spans_16_s_t_nz_f = rdp_render_spans_16_func[28 + ((other_modes.cycle_type & 1) | (other_modes.z_compare_en << 5) | (other_modes.z_update_en << 6) | (other_modes.rgb_dither_sel << 7))]; |
| 3641 | 3651 | render_spans_16_s_t_z_f = rdp_render_spans_16_func[30 + ((other_modes.cycle_type & 1) | (other_modes.z_compare_en << 5) | (other_modes.z_update_en << 6) | (other_modes.rgb_dither_sel << 7))]; |
| 3642 | 3652 | |
| 3643 | | TEXTURE_PIPELINE = rdp_texture_pipeline_func[(other_modes.mid_texel << 1) | other_modes.sample_type]; |
| 3644 | | |
| 3645 | 3653 | for(index = 0; index < 8; index++) |
| 3646 | 3654 | { |
| 3647 | 3655 | tile[index].fetch_index = (tile[index].size << 5) | (tile[index].format << 2) | (other_modes.en_tlut << 1) | other_modes.tlut_type; |
| r6820 | r6821 | |
| 3650 | 3658 | FBWRITE_16 = rdp_fbwrite_16_func[(other_modes.color_on_cvg << 3) | (other_modes.image_read_en << 2) | other_modes.cvg_dest]; |
| 3651 | 3659 | FBWRITE_32 = rdp_fbwrite_32_func[(other_modes.color_on_cvg << 3) | (other_modes.image_read_en << 2) | other_modes.cvg_dest]; |
| 3652 | 3660 | |
| 3653 | | BLENDER_EQUATION0 = other_modes.force_blend ? BLENDER_EQUATION0_FORCE : BLENDER_EQUATION0_NFORCE; |
| 3654 | | BLENDER_EQUATION1 = other_modes.force_blend ? BLENDER_EQUATION1_FORCE : BLENDER_EQUATION1_NFORCE; |
| 3661 | BLENDER1_16_DITH = rdp_blender1_16_dith_func[(other_modes.force_blend << 4) | (other_modes.image_read_en << 3) | (other_modes.z_compare_en << 2) | ((other_modes.rgb_dither_sel >> 1) << 1) | other_modes.alpha_compare_en]; |
| 3662 | BLENDER2_16_DITH = rdp_blender2_16_dith_func[(other_modes.force_blend << 4) | (other_modes.image_read_en << 3) | (other_modes.z_compare_en << 2) | ((other_modes.rgb_dither_sel >> 1) << 1) | other_modes.alpha_compare_en]; |
| 3663 | BLENDER1_16_NDITH = rdp_blender1_16_ndith_func[(other_modes.force_blend << 3) | (other_modes.image_read_en << 2) | (other_modes.z_compare_en << 1) | other_modes.alpha_compare_en]; |
| 3664 | BLENDER2_16_NDITH = rdp_blender2_16_ndith_func[(other_modes.force_blend << 3) | (other_modes.image_read_en << 2) | (other_modes.z_compare_en << 1) | other_modes.alpha_compare_en]; |
| 3655 | 3665 | |
| 3656 | | BLENDER1_16_DITH = rdp_blender1_16_dith_func[(other_modes.image_read_en << 3) | (other_modes.z_compare_en << 2) | ((other_modes.rgb_dither_sel >> 1) << 1) | other_modes.alpha_compare_en]; |
| 3657 | | BLENDER2_16_DITH = rdp_blender2_16_dith_func[(other_modes.image_read_en << 3) | (other_modes.z_compare_en << 2) | ((other_modes.rgb_dither_sel >> 1) << 1) | other_modes.alpha_compare_en]; |
| 3658 | | BLENDER1_16_NDITH = rdp_blender1_16_ndith_func[(other_modes.image_read_en << 2) | (other_modes.z_compare_en << 1) | other_modes.alpha_compare_en]; |
| 3659 | | BLENDER2_16_NDITH = rdp_blender2_16_ndith_func[(other_modes.image_read_en << 2) | (other_modes.z_compare_en << 1) | other_modes.alpha_compare_en]; |
| 3660 | | |
| 3661 | 3666 | SET_BLENDER_INPUT(0, 0, &blender1a_r[0], &blender1a_g[0], &blender1a_b[0], &blender1b_a[0], |
| 3662 | 3667 | other_modes.blend_m1a_0, other_modes.blend_m1b_0); |
| 3663 | 3668 | SET_BLENDER_INPUT(0, 1, &blender2a_r[0], &blender2a_g[0], &blender2a_b[0], &blender2b_a[0], |
| r6820 | r6821 | |
| 3892 | 3897 | { |
| 3893 | 3898 | tc[(tline + i) ^ xorval8] = src[(ti_address + s + i) ^ BYTE_ADDR_XOR]; |
| 3894 | 3899 | } |
| 3895 | | //for (int k=0; k < (topad); k++) // Padding is possibly necessary, not yet known. |
| 3896 | | //{ |
| 3897 | | // tc[((tline+i+k) ^ xorval8] = src[(ti_address + s + i) ^ BYTE_ADDR_XOR]; |
| 3898 | | //} |
| 3899 | 3900 | } |
| 3900 | 3901 | break; |
| 3901 | 3902 | } |
| r6820 | r6821 | |
| 4090 | 4091 | SET_MUL_ALPHA_INPUT(&combiner_alphamul[1], combine.mul_a1); |
| 4091 | 4092 | SET_SUB_ALPHA_INPUT(&combiner_alphaadd[1], combine.add_a1); |
| 4092 | 4093 | |
| 4094 | /* |
| 4093 | 4095 | if(combiner_rgbsub_a_r[1] == &noise_color.i.r) |
| 4094 | 4096 | { |
| 4095 | 4097 | COLOR_COMBINER1 = COLOR_COMBINER1_NOISE; |
| r6820 | r6821 | |
| 4102 | 4104 | COLOR_COMBINER2_C0 = COLOR_COMBINER2_C0_NNOISE; |
| 4103 | 4105 | COLOR_COMBINER2_C1 = COLOR_COMBINER2_C1_NNOISE; |
| 4104 | 4106 | } |
| 4107 | */ |
| 4105 | 4108 | } |
| 4106 | 4109 | |
| 4107 | 4110 | static RDP_COMMAND( rdp_set_texture_image ) |
| r6820 | r6821 | |
| 4257 | 4260 | INLINE void BLENDER_EQUATION0_FORCE(INT32* r, INT32* g, INT32* b, int bsel_special) |
| 4258 | 4261 | { |
| 4259 | 4262 | int blend1a = *blender1b_a[0]; |
| 4260 | | int blend2a = *blender2b_a[0]; |
| 4261 | 4263 | INT32 tr, tg, tb; |
| 4262 | 4264 | if (bsel_special) |
| 4263 | 4265 | { |
| 4264 | 4266 | blend1a &= 0xe0; |
| 4265 | 4267 | } |
| 4266 | 4268 | |
| 4267 | | tr = (int)(*blender1a_r[0]) * blend1a + (int)(*blender2a_r[0]) * blend2a; |
| 4268 | | tg = (int)(*blender1a_g[0]) * blend1a + (int)(*blender2a_g[0]) * blend2a; |
| 4269 | | tb = (int)(*blender1a_b[0]) * blend1a + (int)(*blender2a_b[0]) * blend2a; |
| 4269 | tr = ((int)(*blender1a_r[0]) * blend1a + (int)(*blender2a_r[0]) * *blender2b_a[0] + ((int)(*blender2a_r[0]) << (3 + bsel_special))) >> 8; |
| 4270 | tg = ((int)(*blender1a_g[0]) * blend1a + (int)(*blender2a_g[0]) * *blender2b_a[0] + ((int)(*blender2a_g[0]) << (3 + bsel_special))) >> 8; |
| 4271 | tb = ((int)(*blender1a_b[0]) * blend1a + (int)(*blender2a_b[0]) * *blender2b_a[0] + ((int)(*blender2a_b[0]) << (3 + bsel_special))) >> 8; |
| 4270 | 4272 | |
| 4271 | | tr += ((int)(*blender2a_r[0])) << (3 + bsel_special); |
| 4272 | | tg += ((int)(*blender2a_g[0])) << (3 + bsel_special); |
| 4273 | | tb += ((int)(*blender2a_b[0])) << (3 + bsel_special); |
| 4274 | | |
| 4275 | | tr >>= 8; |
| 4276 | | tg >>= 8; |
| 4277 | | tb >>= 8; |
| 4278 | | |
| 4279 | 4273 | if (tr > 255) *r = 255; else *r = tr; |
| 4280 | 4274 | if (tg > 255) *g = 255; else *g = tg; |
| 4281 | 4275 | if (tb > 255) *b = 255; else *b = tb; |
| r6820 | r6821 | |
| 4498 | 4492 | #undef COLOR_ON_CVG |
| 4499 | 4493 | #include "video/rdpfb.c" |
| 4500 | 4494 | |
| 4501 | | #define ALPHACOMPARE |
| 4502 | | #define IMGREAD |
| 4503 | | #define ZCOMPARE |
| 4504 | | #define RGBDITHER1 |
| 4505 | | #include "video/rdpblend.c" |
| 4506 | | #undef RGBDITHER1 |
| 4507 | | #include "video/rdpblend.c" |
| 4508 | | #undef ZCOMPARE |
| 4509 | | #define RGBDITHER1 |
| 4510 | | #include "video/rdpblend.c" |
| 4511 | | #undef RGBDITHER1 |
| 4512 | | #include "video/rdpblend.c" |
| 4513 | | #undef IMGREAD |
| 4514 | | #define ZCOMPARE |
| 4515 | | #define RGBDITHER1 |
| 4516 | | #include "video/rdpblend.c" |
| 4517 | | #undef RGBDITHER1 |
| 4518 | | #include "video/rdpblend.c" |
| 4519 | | #undef ZCOMPARE |
| 4520 | | #define RGBDITHER1 |
| 4521 | | #include "video/rdpblend.c" |
| 4522 | | #undef RGBDITHER1 |
| 4523 | | #include "video/rdpblend.c" |
| 4524 | | #undef ALPHACOMPARE |
| 4525 | | #define IMGREAD |
| 4526 | | #define ZCOMPARE |
| 4527 | | #define RGBDITHER1 |
| 4528 | | #include "video/rdpblend.c" |
| 4529 | | #undef RGBDITHER1 |
| 4530 | | #include "video/rdpblend.c" |
| 4531 | | #undef ZCOMPARE |
| 4532 | | #define RGBDITHER1 |
| 4533 | | #include "video/rdpblend.c" |
| 4534 | | #undef RGBDITHER1 |
| 4535 | | #include "video/rdpblend.c" |
| 4536 | | #undef IMGREAD |
| 4537 | | #define ZCOMPARE |
| 4538 | | #define RGBDITHER1 |
| 4539 | | #include "video/rdpblend.c" |
| 4540 | | #undef RGBDITHER1 |
| 4541 | | #include "video/rdpblend.c" |
| 4542 | | #undef ZCOMPARE |
| 4543 | | #define RGBDITHER1 |
| 4544 | | #include "video/rdpblend.c" |
| 4545 | | #undef RGBDITHER1 |
| 4546 | | #include "video/rdpblend.c" |
| 4495 | #define FORCEBLEND |
| 4496 | #define ALPHACOMPARE |
| 4497 | #define IMGREAD |
| 4498 | #define ZCOMPARE |
| 4499 | #define RGBDITHER1 |
| 4500 | #include "video/rdpblend.c" |
| 4501 | #undef RGBDITHER1 |
| 4502 | #include "video/rdpblend.c" |
| 4503 | #undef ZCOMPARE |
| 4504 | #define RGBDITHER1 |
| 4505 | #include "video/rdpblend.c" |
| 4506 | #undef RGBDITHER1 |
| 4507 | #include "video/rdpblend.c" |
| 4508 | #undef IMGREAD |
| 4509 | #define ZCOMPARE |
| 4510 | #define RGBDITHER1 |
| 4511 | #include "video/rdpblend.c" |
| 4512 | #undef RGBDITHER1 |
| 4513 | #include "video/rdpblend.c" |
| 4514 | #undef ZCOMPARE |
| 4515 | #define RGBDITHER1 |
| 4516 | #include "video/rdpblend.c" |
| 4517 | #undef RGBDITHER1 |
| 4518 | #include "video/rdpblend.c" |
| 4519 | #undef ALPHACOMPARE |
| 4520 | #define IMGREAD |
| 4521 | #define ZCOMPARE |
| 4522 | #define RGBDITHER1 |
| 4523 | #include "video/rdpblend.c" |
| 4524 | #undef RGBDITHER1 |
| 4525 | #include "video/rdpblend.c" |
| 4526 | #undef ZCOMPARE |
| 4527 | #define RGBDITHER1 |
| 4528 | #include "video/rdpblend.c" |
| 4529 | #undef RGBDITHER1 |
| 4530 | #include "video/rdpblend.c" |
| 4531 | #undef IMGREAD |
| 4532 | #define ZCOMPARE |
| 4533 | #define RGBDITHER1 |
| 4534 | #include "video/rdpblend.c" |
| 4535 | #undef RGBDITHER1 |
| 4536 | #include "video/rdpblend.c" |
| 4537 | #undef ZCOMPARE |
| 4538 | #define RGBDITHER1 |
| 4539 | #include "video/rdpblend.c" |
| 4540 | #undef RGBDITHER1 |
| 4541 | #include "video/rdpblend.c" |
| 4542 | #undef FORCEBLEND |
| 4543 | #define ALPHACOMPARE |
| 4544 | #define IMGREAD |
| 4545 | #define ZCOMPARE |
| 4546 | #define RGBDITHER1 |
| 4547 | #include "video/rdpblend.c" |
| 4548 | #undef RGBDITHER1 |
| 4549 | #include "video/rdpblend.c" |
| 4550 | #undef ZCOMPARE |
| 4551 | #define RGBDITHER1 |
| 4552 | #include "video/rdpblend.c" |
| 4553 | #undef RGBDITHER1 |
| 4554 | #include "video/rdpblend.c" |
| 4555 | #undef IMGREAD |
| 4556 | #define ZCOMPARE |
| 4557 | #define RGBDITHER1 |
| 4558 | #include "video/rdpblend.c" |
| 4559 | #undef RGBDITHER1 |
| 4560 | #include "video/rdpblend.c" |
| 4561 | #undef ZCOMPARE |
| 4562 | #define RGBDITHER1 |
| 4563 | #include "video/rdpblend.c" |
| 4564 | #undef RGBDITHER1 |
| 4565 | #include "video/rdpblend.c" |
| 4566 | #undef ALPHACOMPARE |
| 4567 | #define IMGREAD |
| 4568 | #define ZCOMPARE |
| 4569 | #define RGBDITHER1 |
| 4570 | #include "video/rdpblend.c" |
| 4571 | #undef RGBDITHER1 |
| 4572 | #include "video/rdpblend.c" |
| 4573 | #undef ZCOMPARE |
| 4574 | #define RGBDITHER1 |
| 4575 | #include "video/rdpblend.c" |
| 4576 | #undef RGBDITHER1 |
| 4577 | #include "video/rdpblend.c" |
| 4578 | #undef IMGREAD |
| 4579 | #define ZCOMPARE |
| 4580 | #define RGBDITHER1 |
| 4581 | #include "video/rdpblend.c" |
| 4582 | #undef RGBDITHER1 |
| 4583 | #include "video/rdpblend.c" |
| 4584 | #undef ZCOMPARE |
| 4585 | #define RGBDITHER1 |
| 4586 | #include "video/rdpblend.c" |
| 4587 | #undef RGBDITHER1 |
| 4588 | #include "video/rdpblend.c" |
| 4547 | 4589 | |
| 4548 | 4590 | #include "video/rdpfetch.c" |
| 4549 | 4591 | |
| 4550 | | #include "video/rdptpipe.c" |
| 4592 | #define SHIFT_T |
| 4593 | #define SHIFT_S |
| 4594 | #define DOT |
| 4595 | #define DOS |
| 4596 | #define COPY |
| 4597 | #include "video/rdptpipe.c" |
| 4598 | #undef COPY |
| 4599 | #include "video/rdptpipe.c" |
| 4600 | #undef DOS |
| 4601 | #define COPY |
| 4602 | #include "video/rdptpipe.c" |
| 4603 | #undef COPY |
| 4604 | #include "video/rdptpipe.c" |
| 4605 | #undef DOT |
| 4606 | #define DOS |
| 4607 | #define COPY |
| 4608 | #include "video/rdptpipe.c" |
| 4609 | #undef COPY |
| 4610 | #include "video/rdptpipe.c" |
| 4611 | #undef DOS |
| 4612 | #define COPY |
| 4613 | #include "video/rdptpipe.c" |
| 4614 | #undef COPY |
| 4615 | #include "video/rdptpipe.c" |
| 4616 | #undef SHIFT_S |
| 4617 | #define DOT |
| 4618 | #define DOS |
| 4619 | #define COPY |
| 4620 | #include "video/rdptpipe.c" |
| 4621 | #undef COPY |
| 4622 | #include "video/rdptpipe.c" |
| 4623 | #undef DOS |
| 4624 | #define COPY |
| 4625 | #include "video/rdptpipe.c" |
| 4626 | #undef COPY |
| 4627 | #include "video/rdptpipe.c" |
| 4628 | #undef DOT |
| 4629 | #define DOS |
| 4630 | #define COPY |
| 4631 | #include "video/rdptpipe.c" |
| 4632 | #undef COPY |
| 4633 | #include "video/rdptpipe.c" |
| 4634 | #undef DOS |
| 4635 | #define COPY |
| 4636 | #include "video/rdptpipe.c" |
| 4637 | #undef COPY |
| 4638 | #include "video/rdptpipe.c" |
| 4639 | #undef SHIFT_T |
| 4640 | #define SHIFT_S |
| 4641 | #define DOT |
| 4642 | #define DOS |
| 4643 | #define COPY |
| 4644 | #include "video/rdptpipe.c" |
| 4645 | #undef COPY |
| 4646 | #include "video/rdptpipe.c" |
| 4647 | #undef DOS |
| 4648 | #define COPY |
| 4649 | #include "video/rdptpipe.c" |
| 4650 | #undef COPY |
| 4651 | #include "video/rdptpipe.c" |
| 4652 | #undef DOT |
| 4653 | #define DOS |
| 4654 | #define COPY |
| 4655 | #include "video/rdptpipe.c" |
| 4656 | #undef COPY |
| 4657 | #include "video/rdptpipe.c" |
| 4658 | #undef DOS |
| 4659 | #define COPY |
| 4660 | #include "video/rdptpipe.c" |
| 4661 | #undef COPY |
| 4662 | #include "video/rdptpipe.c" |
| 4663 | #undef SHIFT_S |
| 4664 | #define DOT |
| 4665 | #define DOS |
| 4666 | #define COPY |
| 4667 | #include "video/rdptpipe.c" |
| 4668 | #undef COPY |
| 4669 | #include "video/rdptpipe.c" |
| 4670 | #undef DOS |
| 4671 | #define COPY |
| 4672 | #include "video/rdptpipe.c" |
| 4673 | #undef COPY |
| 4674 | #include "video/rdptpipe.c" |
| 4675 | #undef DOT |
| 4676 | #define DOS |
| 4677 | #define COPY |
| 4678 | #include "video/rdptpipe.c" |
| 4679 | #undef COPY |
| 4680 | #include "video/rdptpipe.c" |
| 4681 | #undef DOS |
| 4682 | #define COPY |
| 4683 | #include "video/rdptpipe.c" |
| 4684 | #undef COPY |
| 4685 | #include "video/rdptpipe.c" |
| 4551 | 4686 | |
| 4552 | 4687 | #define ZCOMPARE |
| 4553 | 4688 | #define ZUPDATE |
| r6820 | r6821 | |
| 5169 | 5304 | |
| 5170 | 5305 | #include "video/rdptri.c" |
| 5171 | 5306 | |
| 5172 | | #define DOS |
| 5173 | | #define DOT |
| 5174 | | #include "video/rdpclamp.c" |
| 5175 | | #undef DOT |
| 5176 | | #include "video/rdpclamp.c" |
| 5177 | | #undef DOS |
| 5178 | | #define DOT |
| 5179 | | #include "video/rdpclamp.c" |
| 5180 | | #undef DOT |
| 5181 | | #include "video/rdpclamp.c" |
| 5182 | | |
| 5183 | 5307 | #define MASK_S |
| 5184 | 5308 | #define MASK_T |
| 5185 | 5309 | #include "video/rdpmask.c" |
| r6820 | r6821 | |
| 5190 | 5314 | #include "video/rdpmask.c" |
| 5191 | 5315 | #undef MASK_T |
| 5192 | 5316 | #include "video/rdpmask.c" |
| 5193 | | |
| 5194 | | #define SHIFT_S |
| 5195 | | #define SHIFT_T |
| 5196 | | #include "video/rdpshift.c" |
| 5197 | | #undef SHIFT_T |
| 5198 | | #include "video/rdpshift.c" |
| 5199 | | #undef SHIFT_S |
| 5200 | | #define SHIFT_T |
| 5201 | | #include "video/rdpshift.c" |
| 5202 | | #undef SHIFT_T |
| 5203 | | #include "video/rdpshift.c" |
| 5204 | | |
| 5205 | | #define NOISE |
| 5206 | | #include "video/rdpcc.c" |
| 5207 | | #undef NOISE |
| 5208 | | #include "video/rdpcc.c" |
| 5209 | | |