trunk/src/mame/video/snk.c
| r17740 | r17741 | |
| 187 | 187 | int i; |
| 188 | 188 | |
| 189 | 189 | if(!(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS)) |
| 190 | | fatalerror("driver should use VIDEO_HAS_SHADOWS"); |
| 190 | fatalerror("driver should use VIDEO_HAS_SHADOWS\n"); |
| 191 | 191 | |
| 192 | 192 | /* prepare shadow draw table */ |
| 193 | 193 | for(i = 0; i <= 5; i++) state->m_drawmode_table[i] = DRAWMODE_SOURCE; |
| r17740 | r17741 | |
| 204 | 204 | int i; |
| 205 | 205 | |
| 206 | 206 | if(!(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS)) |
| 207 | | fatalerror("driver should use VIDEO_HAS_SHADOWS"); |
| 207 | fatalerror("driver should use VIDEO_HAS_SHADOWS\n"); |
| 208 | 208 | |
| 209 | 209 | /* prepare shadow draw table */ |
| 210 | 210 | for(i = 0; i <= 13; i++) state->m_drawmode_table[i] = DRAWMODE_SOURCE; |
trunk/src/mame/video/decospr.c
| r17740 | r17741 | |
| 207 | 207 | //printf("cliprect %04x, %04x\n", cliprect.min_y, cliprect.max_y); |
| 208 | 208 | |
| 209 | 209 | if (m_sprite_bitmap.valid() && m_pricallback) |
| 210 | | fatalerror("m_sprite_bitmap && m_pricallback is invalid"); |
| 210 | fatalerror("m_sprite_bitmap && m_pricallback is invalid\n"); |
| 211 | 211 | |
| 212 | 212 | if (m_sprite_bitmap.valid()) |
| 213 | 213 | m_sprite_bitmap.fill(0, cliprect); |
| r17740 | r17741 | |
| 565 | 565 | void decospr_device::inefficient_copy_sprite_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect, UINT16 pri, UINT16 priority_mask, UINT16 colbase, UINT16 palmask, UINT8 alpha) |
| 566 | 566 | { |
| 567 | 567 | if (!m_sprite_bitmap.valid()) |
| 568 | | fatalerror("decospr_device::inefficient_copy_sprite_bitmap with no m_sprite_bitmap"); |
| 568 | fatalerror("decospr_device::inefficient_copy_sprite_bitmap with no m_sprite_bitmap\n"); |
| 569 | 569 | |
| 570 | 570 | int y, x; |
| 571 | 571 | const pen_t *paldata = machine().pens; |
trunk/src/mame/video/segaic16.c
| r17740 | r17741 | |
| 1042 | 1042 | break; |
| 1043 | 1043 | |
| 1044 | 1044 | default: |
| 1045 | | fatalerror("Invalid tilemap index specified in segaic16_tilemap_init"); |
| 1045 | fatalerror("Invalid tilemap index specified in segaic16_tilemap_init\n"); |
| 1046 | 1046 | } |
| 1047 | 1047 | |
| 1048 | 1048 | /* determine the parameters of the tilemaps */ |
| r17740 | r17741 | |
| 1085 | 1085 | break; |
| 1086 | 1086 | |
| 1087 | 1087 | default: |
| 1088 | | fatalerror("Invalid tilemap type specified in segaic16_tilemap_init"); |
| 1088 | fatalerror("Invalid tilemap type specified in segaic16_tilemap_init\n"); |
| 1089 | 1089 | } |
| 1090 | 1090 | |
| 1091 | 1091 | /* create the tilemap for the text layer */ |
| r17740 | r17741 | |
| 1798 | 1798 | break; |
| 1799 | 1799 | |
| 1800 | 1800 | default: |
| 1801 | | fatalerror("Invalid road index specified in segaic16_road_init"); |
| 1801 | fatalerror("Invalid road index specified in segaic16_road_init\n"); |
| 1802 | 1802 | } |
| 1803 | 1803 | |
| 1804 | 1804 | /* determine the parameters of the road */ |
| r17740 | r17741 | |
| 1818 | 1818 | break; |
| 1819 | 1819 | |
| 1820 | 1820 | default: |
| 1821 | | fatalerror("Invalid road system specified in segaic16_road_init"); |
| 1821 | fatalerror("Invalid road system specified in segaic16_road_init\n"); |
| 1822 | 1822 | } |
| 1823 | 1823 | } |
| 1824 | 1824 | |
| r17740 | r17741 | |
| 1903 | 1903 | break; |
| 1904 | 1904 | |
| 1905 | 1905 | default: |
| 1906 | | fatalerror("Invalid rotate index specified in segaic16_rotate_init"); |
| 1906 | fatalerror("Invalid rotate index specified in segaic16_rotate_init\n"); |
| 1907 | 1907 | } |
| 1908 | 1908 | |
| 1909 | 1909 | /* determine the parameters of the rotate */ |
| r17740 | r17741 | |
| 1914 | 1914 | break; |
| 1915 | 1915 | |
| 1916 | 1916 | default: |
| 1917 | | fatalerror("Invalid rotate system specified in segaic16_rotate_init"); |
| 1917 | fatalerror("Invalid rotate system specified in segaic16_rotate_init\n"); |
| 1918 | 1918 | } |
| 1919 | 1919 | |
| 1920 | 1920 | /* allocate a buffer for swapping */ |
trunk/src/mame/video/model3.c
| r17740 | r17741 | |
| 747 | 747 | case 0x80: /* Gamma-table ? */ |
| 748 | 748 | break; |
| 749 | 749 | default: |
| 750 | | fatalerror("Unknown texture type: %02X: ", header >> 24); |
| 750 | fatalerror("Unknown texture type: %02X\n", header >> 24); |
| 751 | 751 | break; |
| 752 | 752 | } |
| 753 | 753 | } |
| r17740 | r17741 | |
| 940 | 940 | { |
| 941 | 941 | state->m_matrix_stack_ptr++; |
| 942 | 942 | if (state->m_matrix_stack_ptr >= MATRIX_STACK_SIZE) |
| 943 | | fatalerror("push_matrix_stack: matrix stack overflow"); |
| 943 | fatalerror("push_matrix_stack: matrix stack overflow\n"); |
| 944 | 944 | |
| 945 | 945 | memcpy( &state->m_matrix_stack[state->m_matrix_stack_ptr], &state->m_matrix_stack[state->m_matrix_stack_ptr-1], sizeof(MATRIX)); |
| 946 | 946 | } |
| r17740 | r17741 | |
| 949 | 949 | { |
| 950 | 950 | state->m_matrix_stack_ptr--; |
| 951 | 951 | if (state->m_matrix_stack_ptr < 0) |
| 952 | | fatalerror("pop_matrix_stack: matrix stack underflow"); |
| 952 | fatalerror("pop_matrix_stack: matrix stack underflow\n"); |
| 953 | 953 | } |
| 954 | 954 | |
| 955 | 955 | static void multiply_matrix_stack(model3_state *state, MATRIX matrix) |
| r17740 | r17741 | |
| 1338 | 1338 | if (address & 0x800000) |
| 1339 | 1339 | { |
| 1340 | 1340 | if (address >= 0x840000) { |
| 1341 | | fatalerror("get_memory_pointer: invalid display list memory address %08X", address); |
| 1341 | fatalerror("get_memory_pointer: invalid display list memory address %08X\n", address); |
| 1342 | 1342 | } |
| 1343 | 1343 | return &state->m_display_list_ram[address & 0x7fffff]; |
| 1344 | 1344 | } |
| 1345 | 1345 | else |
| 1346 | 1346 | { |
| 1347 | 1347 | if (address >= 0x100000) { |
| 1348 | | fatalerror("get_memory_pointer: invalid node ram address %08X", address); |
| 1348 | fatalerror("get_memory_pointer: invalid node ram address %08X\n", address); |
| 1349 | 1349 | } |
| 1350 | 1350 | return &state->m_culling_ram[address]; |
| 1351 | 1351 | } |
trunk/src/mame/video/konicdev.c
| r17740 | r17741 | |
| 1172 | 1172 | |
| 1173 | 1173 | if (len == 2) return; |
| 1174 | 1174 | |
| 1175 | | if (len % 4) fatalerror("shuffle() - not modulo 4"); /* must not happen */ |
| 1175 | if (len % 4) fatalerror("shuffle() - not modulo 4\n"); /* must not happen */ |
| 1176 | 1176 | |
| 1177 | 1177 | len /= 2; |
| 1178 | 1178 | |
| r17740 | r17741 | |
| 1194 | 1194 | |
| 1195 | 1195 | if (len == 2) return; |
| 1196 | 1196 | |
| 1197 | | if (len % 4) fatalerror("shuffle() - not modulo 4"); /* must not happen */ |
| 1197 | if (len % 4) fatalerror("shuffle() - not modulo 4\n"); /* must not happen */ |
| 1198 | 1198 | |
| 1199 | 1199 | len /= 2; |
| 1200 | 1200 | |
| r17740 | r17741 | |
| 2820 | 2820 | break; |
| 2821 | 2821 | |
| 2822 | 2822 | default: |
| 2823 | | fatalerror("Unsupported plane_order"); |
| 2823 | fatalerror("Unsupported plane_order\n"); |
| 2824 | 2824 | } |
| 2825 | 2825 | |
| 2826 | 2826 | /* deinterleave the graphics, if needed */ |
| r17740 | r17741 | |
| 3383 | 3383 | break; |
| 3384 | 3384 | |
| 3385 | 3385 | default: |
| 3386 | | fatalerror("Unknown plane_order"); |
| 3386 | fatalerror("Unknown plane_order\n"); |
| 3387 | 3387 | } |
| 3388 | 3388 | |
| 3389 | 3389 | if (VERBOSE && !(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS)) |
| r17740 | r17741 | |
| 4221 | 4221 | break; |
| 4222 | 4222 | |
| 4223 | 4223 | default: |
| 4224 | | fatalerror("Unsupported plane_order"); |
| 4224 | fatalerror("Unsupported plane_order\n"); |
| 4225 | 4225 | } |
| 4226 | 4226 | |
| 4227 | 4227 | if (VERBOSE && !(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS)) |
| r17740 | r17741 | |
| 5099 | 5099 | break; |
| 5100 | 5100 | |
| 5101 | 5101 | default: |
| 5102 | | fatalerror("Unsupported plane_order"); |
| 5102 | fatalerror("Unsupported plane_order\n"); |
| 5103 | 5103 | } |
| 5104 | 5104 | |
| 5105 | 5105 | if (VERBOSE) |
| r17740 | r17741 | |
| 5236 | 5236 | break; |
| 5237 | 5237 | |
| 5238 | 5238 | default: |
| 5239 | | fatalerror("Unsupported layout"); |
| 5239 | fatalerror("Unsupported layout\n"); |
| 5240 | 5240 | } |
| 5241 | 5241 | |
| 5242 | 5242 | if (VERBOSE && !(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS)) |
| r17740 | r17741 | |
| 5648 | 5648 | break; |
| 5649 | 5649 | |
| 5650 | 5650 | default: |
| 5651 | | fatalerror("Unsupported bpp"); |
| 5651 | fatalerror("Unsupported bpp\n"); |
| 5652 | 5652 | } |
| 5653 | 5653 | |
| 5654 | 5654 | k051316->memory_region = intf->gfx_memory_region; |
| r17740 | r17741 | |
| 8339 | 8339 | break; |
| 8340 | 8340 | |
| 8341 | 8341 | default: |
| 8342 | | fatalerror("Unsupported bpp"); |
| 8342 | fatalerror("Unsupported bpp\n"); |
| 8343 | 8343 | } |
| 8344 | 8344 | |
| 8345 | 8345 | machine().gfx[intf->gfx_num]->set_granularity(16); /* override */ |
| r17740 | r17741 | |
| 9038 | 9038 | } |
| 9039 | 9039 | default: |
| 9040 | 9040 | { |
| 9041 | | fatalerror("k001006_r, unknown device %02X", k001006->device_sel); |
| 9041 | fatalerror("k001006_r, unknown device %02X\n", k001006->device_sel); |
| 9042 | 9042 | } |
| 9043 | 9043 | } |
| 9044 | 9044 | } |
trunk/src/mame/video/n64.c
| r17740 | r17741 | |
| 3031 | 3031 | |
| 3032 | 3032 | if (tl != th) |
| 3033 | 3033 | { |
| 3034 | | fatalerror("Load tlut: tl=%d, th=%d",tl,th); |
| 3034 | fatalerror("Load tlut: tl=%d, th=%d\n",tl,th); |
| 3035 | 3035 | } |
| 3036 | 3036 | |
| 3037 | 3037 | int count = (sh >> 2) - (sl >> 2) + 1; |
| r17740 | r17741 | |
| 3043 | 3043 | { |
| 3044 | 3044 | if (tile[tilenum].tmem < 256) |
| 3045 | 3045 | { |
| 3046 | | fatalerror("rdp_load_tlut: loading tlut into low half at %d qwords",tile[tilenum].tmem); |
| 3046 | fatalerror("rdp_load_tlut: loading tlut into low half at %d qwords\n",tile[tilenum].tmem); |
| 3047 | 3047 | } |
| 3048 | 3048 | UINT32 srcstart = (MiscState.TIAddress + (tl >> 2) * (MiscState.TIWidth << 1) + (sl >> 1)) >> 1; |
| 3049 | 3049 | UINT16 *dst = GetTMEM16(); |
| r17740 | r17741 | |
| 3095 | 3095 | |
| 3096 | 3096 | if (sh < sl) |
| 3097 | 3097 | { |
| 3098 | | fatalerror("load_block: sh < sl"); |
| 3098 | fatalerror("load_block: sh < sl\n"); |
| 3099 | 3099 | } |
| 3100 | 3100 | |
| 3101 | 3101 | INT32 width = (sh - sl) + 1; |