1 /* 2 * Copyright © 2022 Imagination Technologies Ltd. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a copy 5 * of this software and associated documentation files (the "Software"), to deal 6 * in the Software without restriction, including without limitation the rights 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 * copies of the Software, and to permit persons to whom the Software is 9 * furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice (including the next 12 * paragraph) shall be included in all copies or substantial portions of the 13 * Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 * SOFTWARE. 22 */ 23 24 #ifndef PVR_STATIC_SHADERS_H 25 #define PVR_STATIC_SHADERS_H 26 27 #include <stdint.h> 28 #include <stddef.h> 29 30 /* TODO: Remove this once compiler is integrated. */ 31 #define PVR_INVALID_INST (~0) 32 33 struct pvr_static_buffer { 34 uint32_t dst_idx; 35 uint32_t value; 36 }; 37 38 struct pvr_shader_factory_info { 39 uint32_t temps_required; 40 uint32_t const_shared_regs; 41 uint32_t coeff_regs; 42 uint32_t input_regs; 43 uint32_t explicit_const_start_offset; 44 uint32_t code_size; 45 const uint8_t *const shader_code; 46 uint32_t const_calc_prog_inst_bytes; 47 uint32_t sec_temp_regs; 48 const uint8_t *const_calc_program; 49 uint32_t coeff_update_prog_start; 50 uint32_t coeff_update_temp_regs; 51 const uint32_t *driver_const_location_map; 52 uint32_t num_driver_consts; 53 const struct pvr_static_buffer *static_const_buffer; 54 uint32_t num_static_const; 55 uint32_t msaa_sample_count; 56 }; 57 58 static const uint8_t availability_query_write_shader[144] = { 0 }; 59 60 static const uint32_t availability_query_write_location_map[1] = { 61 0, 62 }; 63 64 static const struct pvr_static_buffer 65 availability_query_write_static_consts[3] = { 66 { 0, 0 }, 67 { 0, 0 }, 68 { 0, 0 }, 69 }; 70 71 static const struct pvr_shader_factory_info availability_query_write_info = { 72 0, 73 0, 74 0, 75 0, 76 0, 77 sizeof(availability_query_write_shader), 78 availability_query_write_shader, 79 0, 80 0, 81 NULL, 82 PVR_INVALID_INST, 83 0, 84 availability_query_write_location_map, 85 0, 86 availability_query_write_static_consts, 87 0, 88 ~0, 89 }; 90 91 static const uint8_t copy_query_results_shader[384] = { 0 }; 92 93 static const uint32_t copy_query_results_location_map[7] = { 94 0, 0, 0, 0, 0, 0, 0, 95 }; 96 97 static const struct pvr_static_buffer copy_query_results_static_consts[2] = { 98 { 0, 0 }, 99 { 0, 0 }, 100 }; 101 102 static const struct pvr_shader_factory_info copy_query_results_info = { 103 0, 104 0, 105 0, 106 0, 107 0, 108 sizeof(copy_query_results_shader), 109 copy_query_results_shader, 110 0, 111 0, 112 NULL, 113 PVR_INVALID_INST, 114 0, 115 copy_query_results_location_map, 116 0, 117 copy_query_results_static_consts, 118 0, 119 ~0, 120 }; 121 122 static const uint8_t reset_query_shader_code[136] = { 0 }; 123 124 static const uint32_t reset_query_location_map[1] = { 125 0, 126 }; 127 128 static const struct pvr_static_buffer reset_query_static_consts[2] = { 129 { 0, 0 }, 130 { 0, 0 }, 131 }; 132 133 static const struct pvr_shader_factory_info reset_query_info = { 134 0, 135 0, 136 0, 137 0, 138 0, 139 sizeof(reset_query_shader_code), 140 reset_query_shader_code, 141 0, 142 0, 143 NULL, 144 PVR_INVALID_INST, 145 0, 146 reset_query_location_map, 147 0, 148 reset_query_static_consts, 149 0, 150 ~0, 151 }; 152 153 static const struct pvr_shader_factory_info 154 *const copy_query_results_collection[1] = { 155 ©_query_results_info, 156 }; 157 158 static const struct pvr_shader_factory_info *const reset_query_collection[1] = { 159 &reset_query_info, 160 }; 161 162 static const uint8_t clear_attachments_1_dw_0_offt_out_reg_shader_code[8] = { 163 0 164 }; 165 static const uint32_t clear_attachments_1_dw_0_offt_out_reg_const_dest[6] = { 166 0 167 }; 168 static const struct pvr_shader_factory_info 169 clear_attachments_1_dw_0_offt_out_reg_info = { 170 0, 171 0, 172 0, 173 0, 174 0, 175 sizeof(clear_attachments_1_dw_0_offt_out_reg_shader_code), 176 clear_attachments_1_dw_0_offt_out_reg_shader_code, 177 0, 178 0, 179 NULL, 180 0, 181 0, 182 clear_attachments_1_dw_0_offt_out_reg_const_dest, 183 0, 184 NULL, 185 0, 186 1, 187 }; 188 189 static const uint8_t clear_attachments_1_dw_0_offt_out_mem_shader_code[8] = { 190 0, 191 }; 192 static const uint32_t clear_attachments_1_dw_0_offt_out_mem_const_dest[6] = { 193 0, 194 }; 195 static const struct pvr_shader_factory_info 196 clear_attachments_1_dw_0_offt_out_mem_info = { 197 0, 198 0, 199 0, 200 0, 201 0, 202 sizeof(clear_attachments_1_dw_0_offt_out_mem_shader_code), 203 clear_attachments_1_dw_0_offt_out_mem_shader_code, 204 0, 205 0, 206 NULL, 207 0, 208 0, 209 clear_attachments_1_dw_0_offt_out_mem_const_dest, 210 0, 211 NULL, 212 0, 213 1, 214 }; 215 216 static const uint8_t clear_attachments_2_dw_0_offt_out_reg_shader_code[8] = { 217 0 218 }; 219 static const uint32_t clear_attachments_2_dw_0_offt_out_reg_const_dest[6] = { 220 0, 221 }; 222 static const struct pvr_shader_factory_info 223 clear_attachments_2_dw_0_offt_out_reg_info = { 224 0, 225 0, 226 0, 227 0, 228 0, 229 sizeof(clear_attachments_2_dw_0_offt_out_reg_shader_code), 230 clear_attachments_2_dw_0_offt_out_reg_shader_code, 231 0, 232 0, 233 NULL, 234 0, 235 0, 236 clear_attachments_2_dw_0_offt_out_reg_const_dest, 237 0, 238 NULL, 239 0, 240 1, 241 }; 242 243 static const uint8_t clear_attachments_2_dw_0_offt_out_mem_shader_code[8] = { 244 0 245 }; 246 static const uint32_t clear_attachments_2_dw_0_offt_out_mem_const_dest[6] = { 247 0, 248 }; 249 static const struct pvr_shader_factory_info 250 clear_attachments_2_dw_0_offt_out_mem_info = { 251 0, 252 0, 253 0, 254 0, 255 0, 256 sizeof(clear_attachments_2_dw_0_offt_out_mem_shader_code), 257 clear_attachments_2_dw_0_offt_out_mem_shader_code, 258 0, 259 0, 260 NULL, 261 0, 262 0, 263 clear_attachments_2_dw_0_offt_out_mem_const_dest, 264 0, 265 NULL, 266 0, 267 1, 268 }; 269 270 static const uint8_t clear_attachments_3_dw_0_offt_out_reg_shader_code[8] = { 271 0 272 }; 273 static const uint32_t clear_attachments_3_dw_0_offt_out_reg_const_dest[6] = { 274 0, 275 }; 276 static const struct pvr_shader_factory_info 277 clear_attachments_3_dw_0_offt_out_reg_info = { 278 0, 279 0, 280 0, 281 0, 282 0, 283 sizeof(clear_attachments_3_dw_0_offt_out_reg_shader_code), 284 clear_attachments_3_dw_0_offt_out_reg_shader_code, 285 0, 286 0, 287 NULL, 288 0, 289 0, 290 clear_attachments_3_dw_0_offt_out_reg_const_dest, 291 0, 292 NULL, 293 0, 294 1, 295 }; 296 297 static const uint8_t clear_attachments_3_dw_0_offt_out_mem_shader_code[8] = { 298 0 299 }; 300 static const uint32_t clear_attachments_3_dw_0_offt_out_mem_const_dest[6] = { 301 0, 302 }; 303 static const struct pvr_shader_factory_info 304 clear_attachments_3_dw_0_offt_out_mem_info = { 305 0, 306 0, 307 0, 308 0, 309 0, 310 sizeof(clear_attachments_3_dw_0_offt_out_mem_shader_code), 311 clear_attachments_3_dw_0_offt_out_mem_shader_code, 312 0, 313 0, 314 NULL, 315 0, 316 0, 317 clear_attachments_3_dw_0_offt_out_mem_const_dest, 318 0, 319 NULL, 320 0, 321 1, 322 }; 323 324 static const uint8_t clear_attachments_4_dw_0_offt_out_reg_shader_code[8] = { 325 0 326 }; 327 static const uint32_t clear_attachments_4_dw_0_offt_out_reg_const_dest[6] = { 328 0, 329 }; 330 static const struct pvr_shader_factory_info 331 clear_attachments_4_dw_0_offt_out_reg_info = { 332 0, 333 0, 334 0, 335 0, 336 0, 337 sizeof(clear_attachments_4_dw_0_offt_out_reg_shader_code), 338 clear_attachments_4_dw_0_offt_out_reg_shader_code, 339 0, 340 0, 341 NULL, 342 0, 343 0, 344 clear_attachments_4_dw_0_offt_out_reg_const_dest, 345 0, 346 NULL, 347 0, 348 1, 349 }; 350 351 static const uint8_t clear_attachments_4_dw_0_offt_out_mem_shader_code[8] = { 352 0 353 }; 354 static const uint32_t clear_attachments_4_dw_0_offt_out_mem_const_dest[6] = { 355 0, 356 }; 357 static const struct pvr_shader_factory_info 358 clear_attachments_4_dw_0_offt_out_mem_info = { 359 0, 360 0, 361 0, 362 0, 363 0, 364 sizeof(clear_attachments_4_dw_0_offt_out_mem_shader_code), 365 clear_attachments_4_dw_0_offt_out_mem_shader_code, 366 0, 367 0, 368 NULL, 369 0, 370 0, 371 clear_attachments_4_dw_0_offt_out_mem_const_dest, 372 0, 373 NULL, 374 0, 375 1, 376 }; 377 378 static const uint8_t clear_attachments_1_dw_1_offt_out_reg_shader_code[8] = { 379 0 380 }; 381 static const uint32_t clear_attachments_1_dw_1_offt_out_reg_const_dest[6] = { 382 0, 383 }; 384 static const struct pvr_shader_factory_info 385 clear_attachments_1_dw_1_offt_out_reg_info = { 386 0, 387 0, 388 0, 389 0, 390 0, 391 sizeof(clear_attachments_1_dw_1_offt_out_reg_shader_code), 392 clear_attachments_1_dw_1_offt_out_reg_shader_code, 393 0, 394 0, 395 NULL, 396 0, 397 0, 398 clear_attachments_1_dw_1_offt_out_reg_const_dest, 399 0, 400 NULL, 401 0, 402 1, 403 }; 404 405 static const uint8_t clear_attachments_1_dw_1_offt_out_mem_shader_code[8] = { 406 0 407 }; 408 static const uint32_t clear_attachments_1_dw_1_offt_out_mem_const_dest[6] = { 409 0, 410 }; 411 static const struct pvr_shader_factory_info 412 clear_attachments_1_dw_1_offt_out_mem_info = { 413 0, 414 0, 415 0, 416 0, 417 0, 418 sizeof(clear_attachments_1_dw_1_offt_out_mem_shader_code), 419 clear_attachments_1_dw_1_offt_out_mem_shader_code, 420 0, 421 0, 422 NULL, 423 0, 424 0, 425 clear_attachments_1_dw_1_offt_out_mem_const_dest, 426 0, 427 NULL, 428 0, 429 1, 430 }; 431 432 static const uint8_t clear_attachments_2_dw_1_offt_out_reg_shader_code[8] = { 433 0 434 }; 435 static const uint32_t clear_attachments_2_dw_1_offt_out_reg_const_dest[6] = { 436 0, 437 }; 438 static const struct pvr_shader_factory_info 439 clear_attachments_2_dw_1_offt_out_reg_info = { 440 0, 441 0, 442 0, 443 0, 444 0, 445 sizeof(clear_attachments_2_dw_1_offt_out_reg_shader_code), 446 clear_attachments_2_dw_1_offt_out_reg_shader_code, 447 0, 448 0, 449 NULL, 450 0, 451 0, 452 clear_attachments_2_dw_1_offt_out_reg_const_dest, 453 0, 454 NULL, 455 0, 456 1, 457 }; 458 459 static const uint8_t clear_attachments_2_dw_1_offt_out_mem_shader_code[8] = { 460 0 461 }; 462 static const uint32_t clear_attachments_2_dw_1_offt_out_mem_const_dest[6] = { 463 0, 464 }; 465 static const struct pvr_shader_factory_info 466 clear_attachments_2_dw_1_offt_out_mem_info = { 467 0, 468 0, 469 0, 470 0, 471 0, 472 sizeof(clear_attachments_2_dw_1_offt_out_mem_shader_code), 473 clear_attachments_2_dw_1_offt_out_mem_shader_code, 474 0, 475 0, 476 NULL, 477 0, 478 0, 479 clear_attachments_2_dw_1_offt_out_mem_const_dest, 480 0, 481 NULL, 482 0, 483 1, 484 }; 485 486 static const uint8_t clear_attachments_3_dw_1_offt_out_reg_shader_code[8] = { 487 0 488 }; 489 static const uint32_t clear_attachments_3_dw_1_offt_out_reg_const_dest[6] = { 490 0, 491 }; 492 static const struct pvr_shader_factory_info 493 clear_attachments_3_dw_1_offt_out_reg_info = { 494 0, 495 0, 496 0, 497 0, 498 0, 499 sizeof(clear_attachments_3_dw_1_offt_out_reg_shader_code), 500 clear_attachments_3_dw_1_offt_out_reg_shader_code, 501 0, 502 0, 503 NULL, 504 0, 505 0, 506 clear_attachments_3_dw_1_offt_out_reg_const_dest, 507 0, 508 NULL, 509 0, 510 1, 511 }; 512 513 static const uint8_t clear_attachments_3_dw_1_offt_out_mem_shader_code[8] = { 514 0 515 }; 516 static const uint32_t clear_attachments_3_dw_1_offt_out_mem_const_dest[6] = { 517 0, 518 }; 519 static const struct pvr_shader_factory_info 520 clear_attachments_3_dw_1_offt_out_mem_info = { 521 0, 522 0, 523 0, 524 0, 525 0, 526 sizeof(clear_attachments_3_dw_1_offt_out_mem_shader_code), 527 clear_attachments_3_dw_1_offt_out_mem_shader_code, 528 0, 529 0, 530 NULL, 531 0, 532 0, 533 clear_attachments_3_dw_1_offt_out_mem_const_dest, 534 0, 535 NULL, 536 0, 537 1, 538 }; 539 540 static const uint8_t clear_attachments_4_dw_1_offt_out_reg_shader_code[8] = { 541 0 542 }; 543 static const uint32_t clear_attachments_4_dw_1_offt_out_reg_const_dest[6] = { 544 0, 545 }; 546 static const struct pvr_shader_factory_info 547 clear_attachments_4_dw_1_offt_out_reg_info = { 548 0, 549 0, 550 0, 551 0, 552 0, 553 sizeof(clear_attachments_4_dw_1_offt_out_reg_shader_code), 554 clear_attachments_4_dw_1_offt_out_reg_shader_code, 555 0, 556 0, 557 NULL, 558 0, 559 0, 560 clear_attachments_4_dw_1_offt_out_reg_const_dest, 561 0, 562 NULL, 563 0, 564 }; 565 566 static const uint8_t clear_attachments_4_dw_1_offt_out_mem_shader_code[8] = { 567 0 568 }; 569 static const uint32_t clear_attachments_4_dw_1_offt_out_mem_const_dest[6] = { 570 0, 571 }; 572 static const struct pvr_shader_factory_info 573 clear_attachments_4_dw_1_offt_out_mem_info = { 574 0, 575 0, 576 0, 577 0, 578 0, 579 sizeof(clear_attachments_4_dw_1_offt_out_mem_shader_code), 580 clear_attachments_4_dw_1_offt_out_mem_shader_code, 581 0, 582 0, 583 NULL, 584 0, 585 0, 586 clear_attachments_4_dw_1_offt_out_mem_const_dest, 587 0, 588 NULL, 589 0, 590 }; 591 592 static const uint8_t clear_attachments_1_dw_2_offt_out_reg_shader_code[8] = { 593 0 594 }; 595 static const uint32_t clear_attachments_1_dw_2_offt_out_reg_const_dest[6] = { 596 0, 597 }; 598 static const struct pvr_shader_factory_info 599 clear_attachments_1_dw_2_offt_out_reg_info = { 600 0, 601 0, 602 0, 603 0, 604 0, 605 sizeof(clear_attachments_1_dw_2_offt_out_reg_shader_code), 606 clear_attachments_1_dw_2_offt_out_reg_shader_code, 607 0, 608 0, 609 NULL, 610 0, 611 0, 612 clear_attachments_1_dw_2_offt_out_reg_const_dest, 613 0, 614 NULL, 615 0, 616 1, 617 }; 618 619 static const uint8_t clear_attachments_1_dw_2_offt_out_mem_shader_code[8] = { 620 0 621 }; 622 static const uint32_t clear_attachments_1_dw_2_offt_out_mem_const_dest[6] = { 623 0, 624 }; 625 static const struct pvr_shader_factory_info 626 clear_attachments_1_dw_2_offt_out_mem_info = { 627 0, 628 0, 629 0, 630 0, 631 0, 632 sizeof(clear_attachments_1_dw_2_offt_out_mem_shader_code), 633 clear_attachments_1_dw_2_offt_out_mem_shader_code, 634 0, 635 0, 636 NULL, 637 0, 638 0, 639 clear_attachments_1_dw_2_offt_out_mem_const_dest, 640 0, 641 NULL, 642 0, 643 1, 644 }; 645 646 static const uint8_t clear_attachments_2_dw_2_offt_out_reg_shader_code[8] = { 647 0 648 }; 649 static const uint32_t clear_attachments_2_dw_2_offt_out_reg_const_dest[6] = { 650 0, 651 }; 652 static const struct pvr_shader_factory_info 653 clear_attachments_2_dw_2_offt_out_reg_info = { 654 0, 655 0, 656 0, 657 0, 658 0, 659 sizeof(clear_attachments_2_dw_2_offt_out_reg_shader_code), 660 clear_attachments_2_dw_2_offt_out_reg_shader_code, 661 0, 662 0, 663 NULL, 664 0, 665 0, 666 clear_attachments_2_dw_2_offt_out_reg_const_dest, 667 0, 668 NULL, 669 0, 670 1, 671 }; 672 673 static const uint8_t clear_attachments_2_dw_2_offt_out_mem_shader_code[8] = { 674 0 675 }; 676 static const uint32_t clear_attachments_2_dw_2_offt_out_mem_const_dest[6] = { 677 0, 678 }; 679 static const struct pvr_shader_factory_info 680 clear_attachments_2_dw_2_offt_out_mem_info = { 681 0, 682 0, 683 0, 684 0, 685 0, 686 sizeof(clear_attachments_2_dw_2_offt_out_mem_shader_code), 687 clear_attachments_2_dw_2_offt_out_mem_shader_code, 688 0, 689 0, 690 NULL, 691 0, 692 0, 693 clear_attachments_2_dw_2_offt_out_mem_const_dest, 694 0, 695 NULL, 696 0, 697 1, 698 }; 699 700 static const uint8_t clear_attachments_3_dw_2_offt_out_reg_shader_code[8] = { 701 0 702 }; 703 static const uint32_t clear_attachments_3_dw_2_offt_out_reg_const_dest[6] = { 704 0, 705 }; 706 static const struct pvr_shader_factory_info 707 clear_attachments_3_dw_2_offt_out_reg_info = { 708 0, 709 0, 710 0, 711 0, 712 0, 713 sizeof(clear_attachments_3_dw_2_offt_out_reg_shader_code), 714 clear_attachments_3_dw_2_offt_out_reg_shader_code, 715 0, 716 0, 717 NULL, 718 0, 719 0, 720 clear_attachments_3_dw_2_offt_out_reg_const_dest, 721 0, 722 NULL, 723 0, 724 }; 725 726 static const uint8_t clear_attachments_3_dw_2_offt_out_mem_shader_code[8] = { 727 0 728 }; 729 static const uint32_t clear_attachments_3_dw_2_offt_out_mem_const_dest[6] = { 730 0, 731 }; 732 static const struct pvr_shader_factory_info 733 clear_attachments_3_dw_2_offt_out_mem_info = { 734 0, 735 0, 736 0, 737 0, 738 0, 739 sizeof(clear_attachments_3_dw_2_offt_out_mem_shader_code), 740 clear_attachments_3_dw_2_offt_out_mem_shader_code, 741 0, 742 0, 743 NULL, 744 0, 745 0, 746 clear_attachments_3_dw_2_offt_out_mem_const_dest, 747 0, 748 NULL, 749 0, 750 }; 751 752 static const uint8_t clear_attachments_4_dw_2_offt_out_reg_shader_code[8] = { 753 0 754 }; 755 static const uint32_t clear_attachments_4_dw_2_offt_out_reg_const_dest[6] = { 756 0, 757 }; 758 static const struct pvr_shader_factory_info 759 clear_attachments_4_dw_2_offt_out_reg_info = { 760 0, 761 0, 762 0, 763 0, 764 0, 765 sizeof(clear_attachments_4_dw_2_offt_out_reg_shader_code), 766 clear_attachments_4_dw_2_offt_out_reg_shader_code, 767 0, 768 0, 769 NULL, 770 0, 771 0, 772 clear_attachments_4_dw_2_offt_out_reg_const_dest, 773 0, 774 NULL, 775 0, 776 }; 777 778 static const uint8_t clear_attachments_4_dw_2_offt_out_mem_shader_code[8] = { 779 0 780 }; 781 static const uint32_t clear_attachments_4_dw_2_offt_out_mem_const_dest[6] = { 782 0, 783 }; 784 static const struct pvr_shader_factory_info 785 clear_attachments_4_dw_2_offt_out_mem_info = { 786 0, 787 0, 788 0, 789 0, 790 0, 791 sizeof(clear_attachments_4_dw_2_offt_out_mem_shader_code), 792 clear_attachments_4_dw_2_offt_out_mem_shader_code, 793 0, 794 0, 795 NULL, 796 0, 797 0, 798 clear_attachments_4_dw_2_offt_out_mem_const_dest, 799 0, 800 NULL, 801 0, 802 }; 803 804 static const uint8_t clear_attachments_1_dw_3_offt_out_reg_shader_code[8] = { 805 0 806 }; 807 static const uint32_t clear_attachments_1_dw_3_offt_out_reg_const_dest[6] = { 808 0, 809 }; 810 static const struct pvr_shader_factory_info 811 clear_attachments_1_dw_3_offt_out_reg_info = { 812 0, 813 0, 814 0, 815 0, 816 0, 817 sizeof(clear_attachments_1_dw_3_offt_out_reg_shader_code), 818 clear_attachments_1_dw_3_offt_out_reg_shader_code, 819 0, 820 0, 821 NULL, 822 0, 823 0, 824 clear_attachments_1_dw_3_offt_out_reg_const_dest, 825 0, 826 NULL, 827 0, 828 1, 829 }; 830 831 static const uint8_t clear_attachments_1_dw_3_offt_out_mem_shader_code[8] = { 832 0 833 }; 834 static const uint32_t clear_attachments_1_dw_3_offt_out_mem_const_dest[6] = { 835 0, 836 }; 837 static const struct pvr_shader_factory_info 838 clear_attachments_1_dw_3_offt_out_mem_info = { 839 0, 840 0, 841 0, 842 0, 843 0, 844 sizeof(clear_attachments_1_dw_3_offt_out_mem_shader_code), 845 clear_attachments_1_dw_3_offt_out_mem_shader_code, 846 0, 847 0, 848 NULL, 849 0, 850 0, 851 clear_attachments_1_dw_3_offt_out_mem_const_dest, 852 0, 853 NULL, 854 0, 855 }; 856 857 static const uint8_t clear_attachments_2_dw_3_offt_out_reg_shader_code[8] = { 858 0 859 }; 860 static const uint32_t clear_attachments_2_dw_3_offt_out_reg_const_dest[6] = { 861 0, 862 }; 863 static const struct pvr_shader_factory_info 864 clear_attachments_2_dw_3_offt_out_reg_info = { 865 0, 866 0, 867 0, 868 0, 869 0, 870 sizeof(clear_attachments_2_dw_3_offt_out_reg_shader_code), 871 clear_attachments_2_dw_3_offt_out_reg_shader_code, 872 0, 873 0, 874 NULL, 875 0, 876 0, 877 clear_attachments_2_dw_3_offt_out_reg_const_dest, 878 0, 879 NULL, 880 0, 881 }; 882 883 static const uint8_t clear_attachments_2_dw_3_offt_out_mem_shader_code[8] = { 884 0 885 }; 886 static const uint32_t clear_attachments_2_dw_3_offt_out_mem_const_dest[6] = { 887 0, 888 }; 889 static const struct pvr_shader_factory_info 890 clear_attachments_2_dw_3_offt_out_mem_info = { 891 0, 892 0, 893 0, 894 0, 895 0, 896 sizeof(clear_attachments_2_dw_3_offt_out_mem_shader_code), 897 clear_attachments_2_dw_3_offt_out_mem_shader_code, 898 0, 899 0, 900 NULL, 901 0, 902 0, 903 clear_attachments_2_dw_3_offt_out_mem_const_dest, 904 0, 905 NULL, 906 0, 907 }; 908 909 static const uint8_t clear_attachments_3_dw_3_offt_out_reg_shader_code[8] = { 910 0 911 }; 912 static const uint32_t clear_attachments_3_dw_3_offt_out_reg_const_dest[6] = { 913 0, 914 }; 915 static const struct pvr_shader_factory_info 916 clear_attachments_3_dw_3_offt_out_reg_info = { 917 0, 918 0, 919 0, 920 0, 921 0, 922 sizeof(clear_attachments_3_dw_3_offt_out_reg_shader_code), 923 clear_attachments_3_dw_3_offt_out_reg_shader_code, 924 0, 925 0, 926 NULL, 927 0, 928 0, 929 clear_attachments_3_dw_3_offt_out_reg_const_dest, 930 0, 931 NULL, 932 0, 933 }; 934 935 static const uint8_t clear_attachments_3_dw_3_offt_out_mem_shader_code[8] = { 936 0 937 }; 938 static const uint32_t clear_attachments_3_dw_3_offt_out_mem_const_dest[6] = { 939 0, 940 }; 941 static const struct pvr_shader_factory_info 942 clear_attachments_3_dw_3_offt_out_mem_info = { 943 0, 944 0, 945 0, 946 0, 947 0, 948 sizeof(clear_attachments_3_dw_3_offt_out_mem_shader_code), 949 clear_attachments_3_dw_3_offt_out_mem_shader_code, 950 0, 951 0, 952 NULL, 953 0, 954 0, 955 clear_attachments_3_dw_3_offt_out_mem_const_dest, 956 0, 957 NULL, 958 0, 959 }; 960 961 static const uint8_t clear_attachments_4_dw_3_offt_out_reg_shader_code[8] = { 962 0 963 }; 964 static const uint32_t clear_attachments_4_dw_3_offt_out_reg_const_dest[6] = { 965 0, 966 }; 967 static const struct pvr_shader_factory_info 968 clear_attachments_4_dw_3_offt_out_reg_info = { 969 0, 970 0, 971 0, 972 0, 973 0, 974 sizeof(clear_attachments_4_dw_3_offt_out_reg_shader_code), 975 clear_attachments_4_dw_3_offt_out_reg_shader_code, 976 0, 977 0, 978 NULL, 979 0, 980 0, 981 clear_attachments_4_dw_3_offt_out_reg_const_dest, 982 0, 983 NULL, 984 0, 985 }; 986 987 static const uint8_t clear_attachments_4_dw_3_offt_out_mem_shader_code[8] = { 988 0 989 }; 990 static const uint32_t clear_attachments_4_dw_3_offt_out_mem_const_dest[6] = { 991 0, 992 }; 993 static const struct pvr_shader_factory_info 994 clear_attachments_4_dw_3_offt_out_mem_info = { 995 0, 996 0, 997 0, 998 0, 999 0, 1000 sizeof(clear_attachments_4_dw_3_offt_out_mem_shader_code), 1001 clear_attachments_4_dw_3_offt_out_mem_shader_code, 1002 0, 1003 0, 1004 NULL, 1005 0, 1006 0, 1007 clear_attachments_4_dw_3_offt_out_mem_const_dest, 1008 0, 1009 NULL, 1010 0, 1011 }; 1012 1013 static const uint8_t clear_attachments_1_dw_4_offt_out_reg_shader_code[8] = { 1014 0 1015 }; 1016 static const uint32_t clear_attachments_1_dw_4_offt_out_reg_const_dest[6] = { 1017 0, 1018 }; 1019 static const struct pvr_shader_factory_info 1020 clear_attachments_1_dw_4_offt_out_reg_info = { 1021 0, 1022 0, 1023 0, 1024 0, 1025 0, 1026 sizeof(clear_attachments_1_dw_4_offt_out_reg_shader_code), 1027 clear_attachments_1_dw_4_offt_out_reg_shader_code, 1028 0, 1029 0, 1030 NULL, 1031 0, 1032 0, 1033 clear_attachments_1_dw_4_offt_out_reg_const_dest, 1034 0, 1035 NULL, 1036 0, 1037 }; 1038 1039 static const uint8_t clear_attachments_1_dw_4_offt_out_mem_shader_code[8] = { 1040 0 1041 }; 1042 static const uint32_t clear_attachments_1_dw_4_offt_out_mem_const_dest[6] = { 1043 0, 1044 }; 1045 static const struct pvr_shader_factory_info 1046 clear_attachments_1_dw_4_offt_out_mem_info = { 1047 0, 1048 0, 1049 0, 1050 0, 1051 0, 1052 sizeof(clear_attachments_1_dw_4_offt_out_mem_shader_code), 1053 clear_attachments_1_dw_4_offt_out_mem_shader_code, 1054 0, 1055 0, 1056 NULL, 1057 0, 1058 0, 1059 clear_attachments_1_dw_4_offt_out_mem_const_dest, 1060 0, 1061 NULL, 1062 0, 1063 }; 1064 1065 static const uint8_t clear_attachments_2_dw_4_offt_out_reg_shader_code[8] = { 1066 0 1067 }; 1068 static const uint32_t clear_attachments_2_dw_4_offt_out_reg_const_dest[6] = { 1069 0, 1070 }; 1071 static const struct pvr_shader_factory_info 1072 clear_attachments_2_dw_4_offt_out_reg_info = { 1073 0, 1074 0, 1075 0, 1076 0, 1077 0, 1078 sizeof(clear_attachments_2_dw_4_offt_out_reg_shader_code), 1079 clear_attachments_2_dw_4_offt_out_reg_shader_code, 1080 0, 1081 0, 1082 NULL, 1083 0, 1084 0, 1085 clear_attachments_2_dw_4_offt_out_reg_const_dest, 1086 0, 1087 NULL, 1088 0, 1089 }; 1090 1091 static const uint8_t clear_attachments_2_dw_4_offt_out_mem_shader_code[8] = { 1092 0 1093 }; 1094 static const uint32_t clear_attachments_2_dw_4_offt_out_mem_const_dest[6] = { 1095 0, 1096 }; 1097 static const struct pvr_shader_factory_info 1098 clear_attachments_2_dw_4_offt_out_mem_info = { 1099 0, 1100 0, 1101 0, 1102 0, 1103 0, 1104 sizeof(clear_attachments_2_dw_4_offt_out_mem_shader_code), 1105 clear_attachments_2_dw_4_offt_out_mem_shader_code, 1106 0, 1107 0, 1108 NULL, 1109 0, 1110 0, 1111 clear_attachments_2_dw_4_offt_out_mem_const_dest, 1112 0, 1113 NULL, 1114 0, 1115 }; 1116 1117 static const uint8_t clear_attachments_3_dw_4_offt_out_reg_shader_code[8] = { 1118 0 1119 }; 1120 static const uint32_t clear_attachments_3_dw_4_offt_out_reg_const_dest[6] = { 1121 0, 1122 }; 1123 static const struct pvr_shader_factory_info 1124 clear_attachments_3_dw_4_offt_out_reg_info = { 1125 0, 1126 0, 1127 0, 1128 0, 1129 0, 1130 sizeof(clear_attachments_3_dw_4_offt_out_reg_shader_code), 1131 clear_attachments_3_dw_4_offt_out_reg_shader_code, 1132 0, 1133 0, 1134 NULL, 1135 0, 1136 0, 1137 clear_attachments_3_dw_4_offt_out_reg_const_dest, 1138 0, 1139 NULL, 1140 0, 1141 }; 1142 1143 static const uint8_t clear_attachments_3_dw_4_offt_out_mem_shader_code[8] = { 1144 0 1145 }; 1146 static const uint32_t clear_attachments_3_dw_4_offt_out_mem_const_dest[6] = { 1147 0, 1148 }; 1149 static const struct pvr_shader_factory_info 1150 clear_attachments_3_dw_4_offt_out_mem_info = { 1151 0, 1152 0, 1153 0, 1154 0, 1155 0, 1156 sizeof(clear_attachments_3_dw_4_offt_out_mem_shader_code), 1157 clear_attachments_3_dw_4_offt_out_mem_shader_code, 1158 0, 1159 0, 1160 NULL, 1161 0, 1162 0, 1163 clear_attachments_3_dw_4_offt_out_mem_const_dest, 1164 0, 1165 NULL, 1166 0, 1167 }; 1168 1169 static const uint8_t clear_attachments_4_dw_4_offt_out_reg_shader_code[8] = { 1170 0 1171 }; 1172 static const uint32_t clear_attachments_4_dw_4_offt_out_reg_const_dest[6] = { 1173 0, 1174 }; 1175 static const struct pvr_shader_factory_info 1176 clear_attachments_4_dw_4_offt_out_reg_info = { 1177 0, 1178 0, 1179 0, 1180 0, 1181 0, 1182 sizeof(clear_attachments_4_dw_4_offt_out_reg_shader_code), 1183 clear_attachments_4_dw_4_offt_out_reg_shader_code, 1184 0, 1185 0, 1186 NULL, 1187 0, 1188 0, 1189 clear_attachments_4_dw_4_offt_out_reg_const_dest, 1190 0, 1191 NULL, 1192 0, 1193 }; 1194 1195 static const uint8_t clear_attachments_4_dw_4_offt_out_mem_shader_code[8] = { 1196 0 1197 }; 1198 static const uint32_t clear_attachments_4_dw_4_offt_out_mem_const_dest[6] = { 1199 0, 1200 }; 1201 static const struct pvr_shader_factory_info 1202 clear_attachments_4_dw_4_offt_out_mem_info = { 1203 0, 1204 0, 1205 0, 1206 0, 1207 0, 1208 sizeof(clear_attachments_4_dw_4_offt_out_mem_shader_code), 1209 clear_attachments_4_dw_4_offt_out_mem_shader_code, 1210 0, 1211 0, 1212 NULL, 1213 0, 1214 0, 1215 clear_attachments_4_dw_4_offt_out_mem_const_dest, 1216 0, 1217 NULL, 1218 0, 1219 }; 1220 1221 static const uint8_t clear_attachments_1_dw_5_offt_out_reg_shader_code[8] = { 1222 0 1223 }; 1224 static const uint32_t clear_attachments_1_dw_5_offt_out_reg_const_dest[6] = { 1225 0, 1226 }; 1227 static const struct pvr_shader_factory_info 1228 clear_attachments_1_dw_5_offt_out_reg_info = { 1229 0, 1230 0, 1231 0, 1232 0, 1233 0, 1234 sizeof(clear_attachments_1_dw_5_offt_out_reg_shader_code), 1235 clear_attachments_1_dw_5_offt_out_reg_shader_code, 1236 0, 1237 0, 1238 NULL, 1239 0, 1240 0, 1241 clear_attachments_1_dw_5_offt_out_reg_const_dest, 1242 0, 1243 NULL, 1244 0, 1245 }; 1246 1247 static const uint8_t clear_attachments_1_dw_5_offt_out_mem_shader_code[8] = { 1248 0 1249 }; 1250 static const uint32_t clear_attachments_1_dw_5_offt_out_mem_const_dest[6] = { 1251 0, 1252 }; 1253 static const struct pvr_shader_factory_info 1254 clear_attachments_1_dw_5_offt_out_mem_info = { 1255 0, 1256 0, 1257 0, 1258 0, 1259 0, 1260 sizeof(clear_attachments_1_dw_5_offt_out_mem_shader_code), 1261 clear_attachments_1_dw_5_offt_out_mem_shader_code, 1262 0, 1263 0, 1264 NULL, 1265 0, 1266 0, 1267 clear_attachments_1_dw_5_offt_out_mem_const_dest, 1268 0, 1269 NULL, 1270 0, 1271 }; 1272 1273 static const uint8_t clear_attachments_2_dw_5_offt_out_reg_shader_code[8] = { 1274 0 1275 }; 1276 static const uint32_t clear_attachments_2_dw_5_offt_out_reg_const_dest[6] = { 1277 0, 1278 }; 1279 static const struct pvr_shader_factory_info 1280 clear_attachments_2_dw_5_offt_out_reg_info = { 1281 0, 1282 0, 1283 0, 1284 0, 1285 0, 1286 sizeof(clear_attachments_2_dw_5_offt_out_reg_shader_code), 1287 clear_attachments_2_dw_5_offt_out_reg_shader_code, 1288 0, 1289 0, 1290 NULL, 1291 0, 1292 0, 1293 clear_attachments_2_dw_5_offt_out_reg_const_dest, 1294 0, 1295 NULL, 1296 0, 1297 }; 1298 1299 static const uint8_t clear_attachments_2_dw_5_offt_out_mem_shader_code[8] = { 1300 0 1301 }; 1302 static const uint32_t clear_attachments_2_dw_5_offt_out_mem_const_dest[6] = { 1303 0, 1304 }; 1305 static const struct pvr_shader_factory_info 1306 clear_attachments_2_dw_5_offt_out_mem_info = { 1307 0, 1308 0, 1309 0, 1310 0, 1311 0, 1312 sizeof(clear_attachments_2_dw_5_offt_out_mem_shader_code), 1313 clear_attachments_2_dw_5_offt_out_mem_shader_code, 1314 0, 1315 0, 1316 NULL, 1317 0, 1318 0, 1319 clear_attachments_2_dw_5_offt_out_mem_const_dest, 1320 0, 1321 NULL, 1322 0, 1323 }; 1324 1325 static const uint8_t clear_attachments_3_dw_5_offt_out_reg_shader_code[8] = { 1326 0 1327 }; 1328 static const uint32_t clear_attachments_3_dw_5_offt_out_reg_const_dest[6] = { 1329 0, 1330 }; 1331 static const struct pvr_shader_factory_info 1332 clear_attachments_3_dw_5_offt_out_reg_info = { 1333 0, 1334 0, 1335 0, 1336 0, 1337 0, 1338 sizeof(clear_attachments_3_dw_5_offt_out_reg_shader_code), 1339 clear_attachments_3_dw_5_offt_out_reg_shader_code, 1340 0, 1341 0, 1342 NULL, 1343 0, 1344 0, 1345 clear_attachments_3_dw_5_offt_out_reg_const_dest, 1346 0, 1347 NULL, 1348 0, 1349 }; 1350 1351 static const uint8_t clear_attachments_3_dw_5_offt_out_mem_shader_code[8] = { 1352 0 1353 }; 1354 static const uint32_t clear_attachments_3_dw_5_offt_out_mem_const_dest[6] = { 1355 0, 1356 }; 1357 static const struct pvr_shader_factory_info 1358 clear_attachments_3_dw_5_offt_out_mem_info = { 1359 0, 1360 0, 1361 0, 1362 0, 1363 0, 1364 sizeof(clear_attachments_3_dw_5_offt_out_mem_shader_code), 1365 clear_attachments_3_dw_5_offt_out_mem_shader_code, 1366 0, 1367 0, 1368 NULL, 1369 0, 1370 0, 1371 clear_attachments_3_dw_5_offt_out_mem_const_dest, 1372 0, 1373 NULL, 1374 0, 1375 }; 1376 1377 static const uint8_t clear_attachments_1_dw_6_offt_out_reg_shader_code[8] = { 1378 0 1379 }; 1380 static const uint32_t clear_attachments_1_dw_6_offt_out_reg_const_dest[6] = { 1381 0, 1382 }; 1383 static const struct pvr_shader_factory_info 1384 clear_attachments_1_dw_6_offt_out_reg_info = { 1385 0, 1386 0, 1387 0, 1388 0, 1389 0, 1390 sizeof(clear_attachments_1_dw_6_offt_out_reg_shader_code), 1391 clear_attachments_1_dw_6_offt_out_reg_shader_code, 1392 0, 1393 0, 1394 NULL, 1395 0, 1396 0, 1397 clear_attachments_1_dw_6_offt_out_reg_const_dest, 1398 0, 1399 NULL, 1400 0, 1401 }; 1402 1403 static const uint8_t clear_attachments_1_dw_6_offt_out_mem_shader_code[8] = { 1404 0 1405 }; 1406 static const uint32_t clear_attachments_1_dw_6_offt_out_mem_const_dest[6] = { 1407 0, 1408 }; 1409 static const struct pvr_shader_factory_info 1410 clear_attachments_1_dw_6_offt_out_mem_info = { 1411 0, 1412 0, 1413 0, 1414 0, 1415 0, 1416 sizeof(clear_attachments_1_dw_6_offt_out_mem_shader_code), 1417 clear_attachments_1_dw_6_offt_out_mem_shader_code, 1418 0, 1419 0, 1420 NULL, 1421 0, 1422 0, 1423 clear_attachments_1_dw_6_offt_out_mem_const_dest, 1424 0, 1425 NULL, 1426 0, 1427 }; 1428 1429 static const uint8_t clear_attachments_2_dw_6_offt_out_reg_shader_code[8] = { 1430 0 1431 }; 1432 static const uint32_t clear_attachments_2_dw_6_offt_out_reg_const_dest[6] = { 1433 0, 1434 }; 1435 static const struct pvr_shader_factory_info 1436 clear_attachments_2_dw_6_offt_out_reg_info = { 1437 0, 1438 0, 1439 0, 1440 0, 1441 0, 1442 sizeof(clear_attachments_2_dw_6_offt_out_reg_shader_code), 1443 clear_attachments_2_dw_6_offt_out_reg_shader_code, 1444 0, 1445 0, 1446 NULL, 1447 0, 1448 0, 1449 clear_attachments_2_dw_6_offt_out_reg_const_dest, 1450 0, 1451 NULL, 1452 0, 1453 }; 1454 1455 static const uint8_t clear_attachments_2_dw_6_offt_out_mem_shader_code[8] = { 1456 0 1457 }; 1458 static const uint32_t clear_attachments_2_dw_6_offt_out_mem_const_dest[6] = { 1459 0, 1460 }; 1461 static const struct pvr_shader_factory_info 1462 clear_attachments_2_dw_6_offt_out_mem_info = { 1463 0, 1464 0, 1465 0, 1466 0, 1467 0, 1468 sizeof(clear_attachments_2_dw_6_offt_out_mem_shader_code), 1469 clear_attachments_2_dw_6_offt_out_mem_shader_code, 1470 0, 1471 0, 1472 NULL, 1473 0, 1474 0, 1475 clear_attachments_2_dw_6_offt_out_mem_const_dest, 1476 0, 1477 NULL, 1478 0, 1479 }; 1480 1481 static const uint8_t clear_attachments_1_dw_7_offt_out_reg_shader_code[8] = { 1482 0 1483 }; 1484 static const uint32_t clear_attachments_1_dw_7_offt_out_reg_const_dest[6] = { 1485 0, 1486 }; 1487 static const struct pvr_shader_factory_info 1488 clear_attachments_1_dw_7_offt_out_reg_info = { 1489 0, 1490 0, 1491 0, 1492 0, 1493 0, 1494 sizeof(clear_attachments_1_dw_7_offt_out_reg_shader_code), 1495 clear_attachments_1_dw_7_offt_out_reg_shader_code, 1496 0, 1497 0, 1498 NULL, 1499 0, 1500 0, 1501 clear_attachments_1_dw_7_offt_out_reg_const_dest, 1502 0, 1503 NULL, 1504 0, 1505 }; 1506 1507 static const uint8_t clear_attachments_1_dw_7_offt_out_mem_shader_code[8] = { 1508 0 1509 }; 1510 static const uint32_t clear_attachments_1_dw_7_offt_out_mem_const_dest[6] = { 1511 0, 1512 }; 1513 static const struct pvr_shader_factory_info 1514 clear_attachments_1_dw_7_offt_out_mem_info = { 1515 0, 1516 0, 1517 0, 1518 0, 1519 0, 1520 sizeof(clear_attachments_1_dw_7_offt_out_mem_shader_code), 1521 clear_attachments_1_dw_7_offt_out_mem_shader_code, 1522 0, 1523 0, 1524 NULL, 1525 0, 1526 0, 1527 clear_attachments_1_dw_7_offt_out_mem_const_dest, 1528 0, 1529 NULL, 1530 0, 1531 1, 1532 }; 1533 static struct { 1534 const uint8_t *code; 1535 const uint32_t size; 1536 const struct pvr_shader_factory_info *info; 1537 } const clear_attachment_collection[64] = { 1538 { clear_attachments_1_dw_0_offt_out_reg_shader_code, 1539 sizeof(clear_attachments_1_dw_0_offt_out_reg_shader_code), 1540 &clear_attachments_1_dw_0_offt_out_reg_info }, 1541 { clear_attachments_1_dw_0_offt_out_mem_shader_code, 1542 sizeof(clear_attachments_1_dw_0_offt_out_mem_shader_code), 1543 &clear_attachments_1_dw_0_offt_out_mem_info }, 1544 { clear_attachments_1_dw_1_offt_out_reg_shader_code, 1545 sizeof(clear_attachments_1_dw_1_offt_out_reg_shader_code), 1546 &clear_attachments_1_dw_1_offt_out_reg_info }, 1547 { clear_attachments_1_dw_1_offt_out_mem_shader_code, 1548 sizeof(clear_attachments_1_dw_1_offt_out_mem_shader_code), 1549 &clear_attachments_1_dw_1_offt_out_mem_info }, 1550 { clear_attachments_1_dw_2_offt_out_reg_shader_code, 1551 sizeof(clear_attachments_1_dw_2_offt_out_reg_shader_code), 1552 &clear_attachments_1_dw_2_offt_out_reg_info }, 1553 { clear_attachments_1_dw_2_offt_out_mem_shader_code, 1554 sizeof(clear_attachments_1_dw_2_offt_out_mem_shader_code), 1555 &clear_attachments_1_dw_2_offt_out_mem_info }, 1556 { clear_attachments_1_dw_3_offt_out_reg_shader_code, 1557 sizeof(clear_attachments_1_dw_3_offt_out_reg_shader_code), 1558 &clear_attachments_1_dw_3_offt_out_reg_info }, 1559 { clear_attachments_1_dw_3_offt_out_mem_shader_code, 1560 sizeof(clear_attachments_1_dw_3_offt_out_mem_shader_code), 1561 &clear_attachments_1_dw_3_offt_out_mem_info }, 1562 { clear_attachments_1_dw_4_offt_out_reg_shader_code, 1563 sizeof(clear_attachments_1_dw_4_offt_out_reg_shader_code), 1564 &clear_attachments_1_dw_4_offt_out_reg_info }, 1565 { clear_attachments_1_dw_4_offt_out_mem_shader_code, 1566 sizeof(clear_attachments_1_dw_4_offt_out_mem_shader_code), 1567 &clear_attachments_1_dw_4_offt_out_mem_info }, 1568 { clear_attachments_1_dw_5_offt_out_reg_shader_code, 1569 sizeof(clear_attachments_1_dw_5_offt_out_reg_shader_code), 1570 &clear_attachments_1_dw_5_offt_out_reg_info }, 1571 { clear_attachments_1_dw_5_offt_out_mem_shader_code, 1572 sizeof(clear_attachments_1_dw_5_offt_out_mem_shader_code), 1573 &clear_attachments_1_dw_5_offt_out_mem_info }, 1574 { clear_attachments_1_dw_6_offt_out_reg_shader_code, 1575 sizeof(clear_attachments_1_dw_6_offt_out_reg_shader_code), 1576 &clear_attachments_1_dw_6_offt_out_reg_info }, 1577 { clear_attachments_1_dw_6_offt_out_mem_shader_code, 1578 sizeof(clear_attachments_1_dw_6_offt_out_mem_shader_code), 1579 &clear_attachments_1_dw_6_offt_out_mem_info }, 1580 { clear_attachments_1_dw_7_offt_out_reg_shader_code, 1581 sizeof(clear_attachments_1_dw_7_offt_out_reg_shader_code), 1582 &clear_attachments_1_dw_7_offt_out_reg_info }, 1583 { clear_attachments_1_dw_7_offt_out_mem_shader_code, 1584 sizeof(clear_attachments_1_dw_7_offt_out_mem_shader_code), 1585 &clear_attachments_1_dw_7_offt_out_mem_info }, 1586 { clear_attachments_2_dw_0_offt_out_reg_shader_code, 1587 sizeof(clear_attachments_2_dw_0_offt_out_reg_shader_code), 1588 &clear_attachments_2_dw_0_offt_out_reg_info }, 1589 { clear_attachments_2_dw_0_offt_out_mem_shader_code, 1590 sizeof(clear_attachments_2_dw_0_offt_out_mem_shader_code), 1591 &clear_attachments_2_dw_0_offt_out_mem_info }, 1592 { clear_attachments_2_dw_1_offt_out_reg_shader_code, 1593 sizeof(clear_attachments_2_dw_1_offt_out_reg_shader_code), 1594 &clear_attachments_2_dw_1_offt_out_reg_info }, 1595 { clear_attachments_2_dw_1_offt_out_mem_shader_code, 1596 sizeof(clear_attachments_2_dw_1_offt_out_mem_shader_code), 1597 &clear_attachments_2_dw_1_offt_out_mem_info }, 1598 { clear_attachments_2_dw_2_offt_out_reg_shader_code, 1599 sizeof(clear_attachments_2_dw_2_offt_out_reg_shader_code), 1600 &clear_attachments_2_dw_2_offt_out_reg_info }, 1601 { clear_attachments_2_dw_2_offt_out_mem_shader_code, 1602 sizeof(clear_attachments_2_dw_2_offt_out_mem_shader_code), 1603 &clear_attachments_2_dw_2_offt_out_mem_info }, 1604 { clear_attachments_2_dw_3_offt_out_reg_shader_code, 1605 sizeof(clear_attachments_2_dw_3_offt_out_reg_shader_code), 1606 &clear_attachments_2_dw_3_offt_out_reg_info }, 1607 { clear_attachments_2_dw_3_offt_out_mem_shader_code, 1608 sizeof(clear_attachments_2_dw_3_offt_out_mem_shader_code), 1609 &clear_attachments_2_dw_3_offt_out_mem_info }, 1610 { clear_attachments_2_dw_4_offt_out_reg_shader_code, 1611 sizeof(clear_attachments_2_dw_4_offt_out_reg_shader_code), 1612 &clear_attachments_2_dw_4_offt_out_reg_info }, 1613 { clear_attachments_2_dw_4_offt_out_mem_shader_code, 1614 sizeof(clear_attachments_2_dw_4_offt_out_mem_shader_code), 1615 &clear_attachments_2_dw_4_offt_out_mem_info }, 1616 { clear_attachments_2_dw_5_offt_out_reg_shader_code, 1617 sizeof(clear_attachments_2_dw_5_offt_out_reg_shader_code), 1618 &clear_attachments_2_dw_5_offt_out_reg_info }, 1619 { clear_attachments_2_dw_5_offt_out_mem_shader_code, 1620 sizeof(clear_attachments_2_dw_5_offt_out_mem_shader_code), 1621 &clear_attachments_2_dw_5_offt_out_mem_info }, 1622 { clear_attachments_2_dw_6_offt_out_reg_shader_code, 1623 sizeof(clear_attachments_2_dw_6_offt_out_reg_shader_code), 1624 &clear_attachments_2_dw_6_offt_out_reg_info }, 1625 { clear_attachments_2_dw_6_offt_out_mem_shader_code, 1626 sizeof(clear_attachments_2_dw_6_offt_out_mem_shader_code), 1627 &clear_attachments_2_dw_6_offt_out_mem_info }, 1628 { NULL, 0, NULL }, 1629 { NULL, 0, NULL }, 1630 { clear_attachments_3_dw_0_offt_out_reg_shader_code, 1631 sizeof(clear_attachments_3_dw_0_offt_out_reg_shader_code), 1632 &clear_attachments_3_dw_0_offt_out_reg_info }, 1633 { clear_attachments_3_dw_0_offt_out_mem_shader_code, 1634 sizeof(clear_attachments_3_dw_0_offt_out_mem_shader_code), 1635 &clear_attachments_3_dw_0_offt_out_mem_info }, 1636 { clear_attachments_3_dw_1_offt_out_reg_shader_code, 1637 sizeof(clear_attachments_3_dw_1_offt_out_reg_shader_code), 1638 &clear_attachments_3_dw_1_offt_out_reg_info }, 1639 { clear_attachments_3_dw_1_offt_out_mem_shader_code, 1640 sizeof(clear_attachments_3_dw_1_offt_out_mem_shader_code), 1641 &clear_attachments_3_dw_1_offt_out_mem_info }, 1642 { clear_attachments_3_dw_2_offt_out_reg_shader_code, 1643 sizeof(clear_attachments_3_dw_2_offt_out_reg_shader_code), 1644 &clear_attachments_3_dw_2_offt_out_reg_info }, 1645 { clear_attachments_3_dw_2_offt_out_mem_shader_code, 1646 sizeof(clear_attachments_3_dw_2_offt_out_mem_shader_code), 1647 &clear_attachments_3_dw_2_offt_out_mem_info }, 1648 { clear_attachments_3_dw_3_offt_out_reg_shader_code, 1649 sizeof(clear_attachments_3_dw_3_offt_out_reg_shader_code), 1650 &clear_attachments_3_dw_3_offt_out_reg_info }, 1651 { clear_attachments_3_dw_3_offt_out_mem_shader_code, 1652 sizeof(clear_attachments_3_dw_3_offt_out_mem_shader_code), 1653 &clear_attachments_3_dw_3_offt_out_mem_info }, 1654 { clear_attachments_3_dw_4_offt_out_reg_shader_code, 1655 sizeof(clear_attachments_3_dw_4_offt_out_reg_shader_code), 1656 &clear_attachments_3_dw_4_offt_out_reg_info }, 1657 { clear_attachments_3_dw_4_offt_out_mem_shader_code, 1658 sizeof(clear_attachments_3_dw_4_offt_out_mem_shader_code), 1659 &clear_attachments_3_dw_4_offt_out_mem_info }, 1660 { clear_attachments_3_dw_5_offt_out_reg_shader_code, 1661 sizeof(clear_attachments_3_dw_5_offt_out_reg_shader_code), 1662 &clear_attachments_3_dw_5_offt_out_reg_info }, 1663 { clear_attachments_3_dw_5_offt_out_mem_shader_code, 1664 sizeof(clear_attachments_3_dw_5_offt_out_mem_shader_code), 1665 &clear_attachments_3_dw_5_offt_out_mem_info }, 1666 { NULL, 0, NULL }, 1667 { NULL, 0, NULL }, 1668 { NULL, 0, NULL }, 1669 { NULL, 0, NULL }, 1670 { clear_attachments_4_dw_0_offt_out_reg_shader_code, 1671 sizeof(clear_attachments_4_dw_0_offt_out_reg_shader_code), 1672 &clear_attachments_4_dw_0_offt_out_reg_info }, 1673 { clear_attachments_4_dw_0_offt_out_mem_shader_code, 1674 sizeof(clear_attachments_4_dw_0_offt_out_mem_shader_code), 1675 &clear_attachments_4_dw_0_offt_out_mem_info }, 1676 { clear_attachments_4_dw_1_offt_out_reg_shader_code, 1677 sizeof(clear_attachments_4_dw_1_offt_out_reg_shader_code), 1678 &clear_attachments_4_dw_1_offt_out_reg_info }, 1679 { clear_attachments_4_dw_1_offt_out_mem_shader_code, 1680 sizeof(clear_attachments_4_dw_1_offt_out_mem_shader_code), 1681 &clear_attachments_4_dw_1_offt_out_mem_info }, 1682 { clear_attachments_4_dw_2_offt_out_reg_shader_code, 1683 sizeof(clear_attachments_4_dw_2_offt_out_reg_shader_code), 1684 &clear_attachments_4_dw_2_offt_out_reg_info }, 1685 { clear_attachments_4_dw_2_offt_out_mem_shader_code, 1686 sizeof(clear_attachments_4_dw_2_offt_out_mem_shader_code), 1687 &clear_attachments_4_dw_2_offt_out_mem_info }, 1688 { clear_attachments_4_dw_3_offt_out_reg_shader_code, 1689 sizeof(clear_attachments_4_dw_3_offt_out_reg_shader_code), 1690 &clear_attachments_4_dw_3_offt_out_reg_info }, 1691 { clear_attachments_4_dw_3_offt_out_mem_shader_code, 1692 sizeof(clear_attachments_4_dw_3_offt_out_mem_shader_code), 1693 &clear_attachments_4_dw_3_offt_out_mem_info }, 1694 { clear_attachments_4_dw_4_offt_out_reg_shader_code, 1695 sizeof(clear_attachments_4_dw_4_offt_out_reg_shader_code), 1696 &clear_attachments_4_dw_4_offt_out_reg_info }, 1697 { clear_attachments_4_dw_4_offt_out_mem_shader_code, 1698 sizeof(clear_attachments_4_dw_4_offt_out_mem_shader_code), 1699 &clear_attachments_4_dw_4_offt_out_mem_info }, 1700 { NULL, 0, NULL }, 1701 { NULL, 0, NULL }, 1702 { NULL, 0, NULL }, 1703 { NULL, 0, NULL }, 1704 { NULL, 0, NULL }, 1705 { NULL, 0, NULL }, 1706 }; 1707 1708 static const uint8_t spm_load_1X_1_regs_shader_code[8] = { 0 }; 1709 1710 static const struct pvr_shader_factory_info spm_load_1X_1_regs_info = { 1711 0, 1712 0, 1713 0, 1714 0, 1715 0, 1716 sizeof(spm_load_1X_1_regs_shader_code), 1717 spm_load_1X_1_regs_shader_code, 1718 0, 1719 0, 1720 NULL, 1721 0, 1722 0, 1723 NULL, 1724 0, 1725 NULL, 1726 0, 1727 1, 1728 }; 1729 1730 static const uint8_t spm_load_1X_2_regs_shader_code[8] = { 0 }; 1731 1732 static const struct pvr_shader_factory_info spm_load_1X_2_regs_info = { 1733 0, 1734 0, 1735 0, 1736 0, 1737 0, 1738 sizeof(spm_load_1X_2_regs_shader_code), 1739 spm_load_1X_2_regs_shader_code, 1740 0, 1741 0, 1742 NULL, 1743 0, 1744 0, 1745 NULL, 1746 0, 1747 NULL, 1748 0, 1749 1, 1750 }; 1751 1752 static const uint8_t spm_load_1X_4_regs_shader_code[8] = { 0 }; 1753 1754 static const struct pvr_shader_factory_info spm_load_1X_4_regs_info = { 1755 0, 1756 0, 1757 0, 1758 0, 1759 0, 1760 sizeof(spm_load_1X_4_regs_shader_code), 1761 spm_load_1X_4_regs_shader_code, 1762 0, 1763 0, 1764 NULL, 1765 0, 1766 0, 1767 NULL, 1768 0, 1769 NULL, 1770 0, 1771 1, 1772 }; 1773 1774 static const uint8_t spm_load_1X_1_buffers_shader_code[8] = { 0 }; 1775 1776 static const uint32_t spm_load_1X_1_buffers_const_dest[14] = { 0 }; 1777 1778 static const struct pvr_shader_factory_info spm_load_1X_1_buffers_info = { 1779 0, 1780 0, 1781 0, 1782 0, 1783 0, 1784 sizeof(spm_load_1X_1_buffers_shader_code), 1785 spm_load_1X_1_buffers_shader_code, 1786 0, 1787 0, 1788 NULL, 1789 0, 1790 0, 1791 spm_load_1X_1_buffers_const_dest, 1792 0, 1793 NULL, 1794 0, 1795 1, 1796 }; 1797 1798 static const uint8_t spm_load_1X_2_buffers_shader_code[8] = { 0 }; 1799 1800 static const uint32_t spm_load_1X_2_buffers_const_dest[14] = { 0 }; 1801 1802 static const struct pvr_shader_factory_info spm_load_1X_2_buffers_info = { 1803 0, 1804 0, 1805 0, 1806 0, 1807 0, 1808 sizeof(spm_load_1X_2_buffers_shader_code), 1809 spm_load_1X_2_buffers_shader_code, 1810 0, 1811 0, 1812 NULL, 1813 0, 1814 0, 1815 spm_load_1X_2_buffers_const_dest, 1816 0, 1817 NULL, 1818 0, 1819 1, 1820 }; 1821 1822 static const uint8_t spm_load_1X_3_buffers_shader_code[8] = { 0 }; 1823 1824 static const uint32_t spm_load_1X_3_buffers_const_dest[14] = { 0 }; 1825 1826 static const struct pvr_shader_factory_info spm_load_1X_3_buffers_info = { 1827 0, 1828 0, 1829 0, 1830 0, 1831 0, 1832 sizeof(spm_load_1X_3_buffers_shader_code), 1833 spm_load_1X_3_buffers_shader_code, 1834 0, 1835 0, 1836 NULL, 1837 0, 1838 0, 1839 spm_load_1X_3_buffers_const_dest, 1840 0, 1841 NULL, 1842 0, 1843 1, 1844 }; 1845 1846 static const uint8_t spm_load_1X_4_buffers_shader_code[8] = { 0 }; 1847 1848 static const uint32_t spm_load_1X_4_buffers_const_dest[14] = { 0 }; 1849 1850 static const struct pvr_shader_factory_info spm_load_1X_4_buffers_info = { 1851 0, 1852 0, 1853 0, 1854 0, 1855 0, 1856 sizeof(spm_load_1X_4_buffers_shader_code), 1857 spm_load_1X_4_buffers_shader_code, 1858 0, 1859 0, 1860 NULL, 1861 0, 1862 0, 1863 spm_load_1X_4_buffers_const_dest, 1864 0, 1865 NULL, 1866 0, 1867 1, 1868 }; 1869 1870 static const uint8_t spm_load_1X_5_buffers_shader_code[8] = { 0 }; 1871 1872 static const uint32_t spm_load_1X_5_buffers_const_dest[14] = { 0 }; 1873 1874 static const struct pvr_shader_factory_info spm_load_1X_5_buffers_info = { 1875 0, 1876 0, 1877 0, 1878 0, 1879 0, 1880 sizeof(spm_load_1X_5_buffers_shader_code), 1881 spm_load_1X_5_buffers_shader_code, 1882 0, 1883 0, 1884 NULL, 1885 0, 1886 0, 1887 spm_load_1X_5_buffers_const_dest, 1888 0, 1889 NULL, 1890 0, 1891 1, 1892 }; 1893 1894 static const uint8_t spm_load_1X_6_buffers_shader_code[8] = { 0 }; 1895 1896 static const uint32_t spm_load_1X_6_buffers_const_dest[14] = { 0 }; 1897 1898 static const struct pvr_shader_factory_info spm_load_1X_6_buffers_info = { 1899 0, 1900 0, 1901 0, 1902 0, 1903 0, 1904 sizeof(spm_load_1X_6_buffers_shader_code), 1905 spm_load_1X_6_buffers_shader_code, 1906 0, 1907 0, 1908 NULL, 1909 0, 1910 0, 1911 spm_load_1X_6_buffers_const_dest, 1912 0, 1913 NULL, 1914 0, 1915 1, 1916 }; 1917 1918 static const uint8_t spm_load_1X_7_buffers_shader_code[8] = { 0 }; 1919 1920 static const uint32_t spm_load_1X_7_buffers_const_dest[14] = { 0 }; 1921 1922 static const struct pvr_shader_factory_info spm_load_1X_7_buffers_info = { 1923 0, 1924 0, 1925 0, 1926 0, 1927 0, 1928 sizeof(spm_load_1X_7_buffers_shader_code), 1929 spm_load_1X_7_buffers_shader_code, 1930 0, 1931 0, 1932 NULL, 1933 0, 1934 0, 1935 spm_load_1X_7_buffers_const_dest, 1936 0, 1937 NULL, 1938 0, 1939 1, 1940 }; 1941 1942 static const uint8_t spm_load_2X_1_regs_shader_code[8] = { 0 }; 1943 1944 static const struct pvr_shader_factory_info spm_load_2X_1_regs_info = { 1945 0, 1946 0, 1947 0, 1948 0, 1949 0, 1950 sizeof(spm_load_2X_1_regs_shader_code), 1951 spm_load_2X_1_regs_shader_code, 1952 0, 1953 0, 1954 NULL, 1955 0, 1956 0, 1957 NULL, 1958 0, 1959 NULL, 1960 0, 1961 2, 1962 }; 1963 1964 static const uint8_t spm_load_2X_2_regs_shader_code[8] = { 0 }; 1965 1966 static const struct pvr_shader_factory_info spm_load_2X_2_regs_info = { 1967 0, 1968 0, 1969 0, 1970 0, 1971 0, 1972 sizeof(spm_load_2X_2_regs_shader_code), 1973 spm_load_2X_2_regs_shader_code, 1974 0, 1975 0, 1976 NULL, 1977 0, 1978 0, 1979 NULL, 1980 0, 1981 NULL, 1982 0, 1983 2, 1984 }; 1985 1986 static const uint8_t spm_load_2X_4_regs_shader_code[8] = { 0 }; 1987 1988 static const struct pvr_shader_factory_info spm_load_2X_4_regs_info = { 1989 0, 1990 0, 1991 0, 1992 0, 1993 0, 1994 sizeof(spm_load_2X_4_regs_shader_code), 1995 spm_load_2X_4_regs_shader_code, 1996 0, 1997 0, 1998 NULL, 1999 0, 2000 0, 2001 NULL, 2002 0, 2003 NULL, 2004 0, 2005 2, 2006 }; 2007 2008 static const uint8_t spm_load_2X_1_buffers_shader_code[8] = { 0 }; 2009 2010 static const uint32_t spm_load_2X_1_buffers_const_dest[14] = { 0 }; 2011 2012 static const struct pvr_shader_factory_info spm_load_2X_1_buffers_info = { 2013 0, 2014 0, 2015 0, 2016 0, 2017 0, 2018 sizeof(spm_load_2X_1_buffers_shader_code), 2019 spm_load_2X_1_buffers_shader_code, 2020 0, 2021 0, 2022 NULL, 2023 0, 2024 0, 2025 spm_load_2X_1_buffers_const_dest, 2026 0, 2027 NULL, 2028 0, 2029 2, 2030 }; 2031 2032 static const uint8_t spm_load_2X_2_buffers_shader_code[8] = { 0 }; 2033 2034 static const uint32_t spm_load_2X_2_buffers_const_dest[14] = { 0 }; 2035 2036 static const struct pvr_shader_factory_info spm_load_2X_2_buffers_info = { 2037 0, 2038 0, 2039 0, 2040 0, 2041 0, 2042 sizeof(spm_load_2X_2_buffers_shader_code), 2043 spm_load_2X_2_buffers_shader_code, 2044 0, 2045 0, 2046 NULL, 2047 0, 2048 0, 2049 spm_load_2X_2_buffers_const_dest, 2050 0, 2051 NULL, 2052 0, 2053 2, 2054 }; 2055 2056 static const uint8_t spm_load_2X_3_buffers_shader_code[8] = { 0 }; 2057 2058 static const uint32_t spm_load_2X_3_buffers_const_dest[14] = { 0 }; 2059 2060 static const struct pvr_shader_factory_info spm_load_2X_3_buffers_info = { 2061 0, 2062 0, 2063 0, 2064 0, 2065 0, 2066 sizeof(spm_load_2X_3_buffers_shader_code), 2067 spm_load_2X_3_buffers_shader_code, 2068 0, 2069 0, 2070 NULL, 2071 0, 2072 0, 2073 spm_load_2X_3_buffers_const_dest, 2074 0, 2075 NULL, 2076 0, 2077 2, 2078 }; 2079 2080 static const uint8_t spm_load_2X_4_buffers_shader_code[8] = { 0 }; 2081 2082 static const uint32_t spm_load_2X_4_buffers_const_dest[14] = { 0 }; 2083 2084 static const struct pvr_shader_factory_info spm_load_2X_4_buffers_info = { 2085 0, 2086 0, 2087 0, 2088 0, 2089 0, 2090 sizeof(spm_load_2X_4_buffers_shader_code), 2091 spm_load_2X_4_buffers_shader_code, 2092 0, 2093 0, 2094 NULL, 2095 0, 2096 0, 2097 spm_load_2X_4_buffers_const_dest, 2098 0, 2099 NULL, 2100 0, 2101 2, 2102 }; 2103 2104 static const uint8_t spm_load_2X_5_buffers_shader_code[8] = { 0 }; 2105 2106 static const uint32_t spm_load_2X_5_buffers_const_dest[14] = { 0 }; 2107 2108 static const struct pvr_shader_factory_info spm_load_2X_5_buffers_info = { 2109 0, 2110 0, 2111 0, 2112 0, 2113 0, 2114 sizeof(spm_load_2X_5_buffers_shader_code), 2115 spm_load_2X_5_buffers_shader_code, 2116 0, 2117 0, 2118 NULL, 2119 0, 2120 0, 2121 spm_load_2X_5_buffers_const_dest, 2122 0, 2123 NULL, 2124 0, 2125 2, 2126 }; 2127 2128 static const uint8_t spm_load_2X_6_buffers_shader_code[8] = { 0 }; 2129 2130 static const uint32_t spm_load_2X_6_buffers_const_dest[14] = { 0 }; 2131 2132 static const struct pvr_shader_factory_info spm_load_2X_6_buffers_info = { 2133 0, 2134 0, 2135 0, 2136 0, 2137 0, 2138 sizeof(spm_load_2X_6_buffers_shader_code), 2139 spm_load_2X_6_buffers_shader_code, 2140 0, 2141 0, 2142 NULL, 2143 0, 2144 0, 2145 spm_load_2X_6_buffers_const_dest, 2146 0, 2147 NULL, 2148 0, 2149 2, 2150 }; 2151 2152 static const uint8_t spm_load_2X_7_buffers_shader_code[8] = { 0 }; 2153 2154 static const uint32_t spm_load_2X_7_buffers_const_dest[14] = { 0 }; 2155 2156 static const struct pvr_shader_factory_info spm_load_2X_7_buffers_info = { 2157 0, 2158 0, 2159 0, 2160 0, 2161 0, 2162 sizeof(spm_load_2X_7_buffers_shader_code), 2163 spm_load_2X_7_buffers_shader_code, 2164 0, 2165 0, 2166 NULL, 2167 0, 2168 0, 2169 spm_load_2X_7_buffers_const_dest, 2170 0, 2171 NULL, 2172 0, 2173 2, 2174 }; 2175 2176 static const uint8_t spm_load_4X_1_regs_shader_code[8] = { 0 }; 2177 2178 static const struct pvr_shader_factory_info spm_load_4X_1_regs_info = { 2179 0, 2180 0, 2181 0, 2182 0, 2183 0, 2184 sizeof(spm_load_4X_1_regs_shader_code), 2185 spm_load_4X_1_regs_shader_code, 2186 0, 2187 0, 2188 NULL, 2189 0, 2190 0, 2191 NULL, 2192 0, 2193 NULL, 2194 0, 2195 4, 2196 }; 2197 2198 static const uint8_t spm_load_4X_2_regs_shader_code[8] = { 0 }; 2199 2200 static const struct pvr_shader_factory_info spm_load_4X_2_regs_info = { 2201 0, 2202 0, 2203 0, 2204 0, 2205 0, 2206 sizeof(spm_load_4X_2_regs_shader_code), 2207 spm_load_4X_2_regs_shader_code, 2208 0, 2209 0, 2210 NULL, 2211 0, 2212 0, 2213 NULL, 2214 0, 2215 NULL, 2216 0, 2217 4, 2218 }; 2219 2220 static const uint8_t spm_load_4X_4_regs_shader_code[8] = { 0 }; 2221 2222 static const struct pvr_shader_factory_info spm_load_4X_4_regs_info = { 2223 0, 0, 0, 0, 0, 0, spm_load_4X_4_regs_shader_code, 0, 0, NULL, 2224 0, 0, NULL, 0, NULL, 0, 4 2225 }; 2226 2227 static const uint8_t spm_load_4X_1_buffers_shader_code[8] = { 0 }; 2228 2229 static const uint32_t spm_load_4X_1_buffers_const_dest[14] = { 0 }; 2230 2231 static const struct pvr_shader_factory_info spm_load_4X_1_buffers_info = { 2232 0, 2233 0, 2234 0, 2235 0, 2236 0, 2237 sizeof(spm_load_4X_1_buffers_shader_code), 2238 spm_load_4X_1_buffers_shader_code, 2239 0, 2240 0, 2241 NULL, 2242 0, 2243 0, 2244 spm_load_4X_1_buffers_const_dest, 2245 0, 2246 NULL, 2247 0, 2248 4, 2249 }; 2250 2251 static const uint8_t spm_load_4X_2_buffers_shader_code[8] = { 0 }; 2252 2253 static const uint32_t spm_load_4X_2_buffers_const_dest[14] = { 0 }; 2254 2255 static const struct pvr_shader_factory_info spm_load_4X_2_buffers_info = { 2256 0, 2257 0, 2258 0, 2259 0, 2260 0, 2261 sizeof(spm_load_4X_2_buffers_shader_code), 2262 spm_load_4X_2_buffers_shader_code, 2263 0, 2264 0, 2265 NULL, 2266 0, 2267 0, 2268 spm_load_4X_2_buffers_const_dest, 2269 0, 2270 NULL, 2271 0, 2272 4, 2273 }; 2274 2275 static const uint8_t spm_load_4X_3_buffers_shader_code[8] = { 0 }; 2276 2277 static const uint32_t spm_load_4X_3_buffers_const_dest[14] = { 0 }; 2278 2279 static const struct pvr_shader_factory_info spm_load_4X_3_buffers_info = { 2280 0, 2281 0, 2282 0, 2283 0, 2284 0, 2285 sizeof(spm_load_4X_3_buffers_shader_code), 2286 spm_load_4X_3_buffers_shader_code, 2287 0, 2288 0, 2289 NULL, 2290 0, 2291 0, 2292 spm_load_4X_3_buffers_const_dest, 2293 0, 2294 NULL, 2295 0, 2296 4, 2297 }; 2298 2299 static const uint8_t spm_load_4X_4_buffers_shader_code[8] = { 0 }; 2300 2301 static const uint32_t spm_load_4X_4_buffers_const_dest[14] = { 0 }; 2302 2303 static const struct pvr_shader_factory_info spm_load_4X_4_buffers_info = { 2304 0, 2305 0, 2306 0, 2307 0, 2308 0, 2309 sizeof(spm_load_4X_4_buffers_shader_code), 2310 spm_load_4X_4_buffers_shader_code, 2311 0, 2312 0, 2313 NULL, 2314 0, 2315 0, 2316 spm_load_4X_4_buffers_const_dest, 2317 0, 2318 NULL, 2319 0, 2320 4, 2321 }; 2322 2323 static const uint8_t spm_load_4X_5_buffers_shader_code[8] = { 0 }; 2324 2325 static const uint32_t spm_load_4X_5_buffers_const_dest[14] = { 0 }; 2326 2327 static const struct pvr_shader_factory_info spm_load_4X_5_buffers_info = { 2328 0, 2329 0, 2330 0, 2331 0, 2332 0, 2333 sizeof(spm_load_4X_5_buffers_shader_code), 2334 spm_load_4X_5_buffers_shader_code, 2335 0, 2336 0, 2337 NULL, 2338 0, 2339 0, 2340 spm_load_4X_5_buffers_const_dest, 2341 0, 2342 NULL, 2343 0, 2344 4, 2345 }; 2346 2347 static const uint8_t spm_load_4X_6_buffers_shader_code[8] = { 0 }; 2348 2349 static const uint32_t spm_load_4X_6_buffers_const_dest[14] = { 0 }; 2350 2351 static const struct pvr_shader_factory_info spm_load_4X_6_buffers_info = { 2352 0, 2353 0, 2354 0, 2355 0, 2356 0, 2357 sizeof(spm_load_4X_6_buffers_shader_code), 2358 spm_load_4X_6_buffers_shader_code, 2359 0, 2360 0, 2361 NULL, 2362 0, 2363 0, 2364 spm_load_4X_6_buffers_const_dest, 2365 0, 2366 NULL, 2367 0, 2368 4, 2369 }; 2370 2371 static const uint8_t spm_load_4X_7_buffers_shader_code[8] = { 0 }; 2372 2373 static const uint32_t spm_load_4X_7_buffers_const_dest[14] = { 0 }; 2374 2375 static const struct pvr_shader_factory_info spm_load_4X_7_buffers_info = { 2376 0, 2377 0, 2378 0, 2379 0, 2380 0, 2381 sizeof(spm_load_4X_7_buffers_shader_code), 2382 spm_load_4X_7_buffers_shader_code, 2383 0, 2384 0, 2385 NULL, 2386 0, 2387 0, 2388 spm_load_4X_7_buffers_const_dest, 2389 0, 2390 NULL, 2391 0, 2392 4, 2393 }; 2394 2395 static const uint8_t spm_load_8X_1_regs_shader_code[8] = { 0 }; 2396 2397 static const struct pvr_shader_factory_info spm_load_8X_1_regs_info = { 2398 0, 2399 0, 2400 0, 2401 0, 2402 0, 2403 sizeof(spm_load_8X_1_regs_shader_code), 2404 spm_load_8X_1_regs_shader_code, 2405 0, 2406 0, 2407 NULL, 2408 0, 2409 0, 2410 NULL, 2411 0, 2412 NULL, 2413 0, 2414 8, 2415 }; 2416 2417 static const uint8_t spm_load_8X_2_regs_shader_code[8] = { 0 }; 2418 2419 static const struct pvr_shader_factory_info spm_load_8X_2_regs_info = { 2420 0, 2421 0, 2422 0, 2423 0, 2424 0, 2425 sizeof(spm_load_8X_2_regs_shader_code), 2426 spm_load_8X_2_regs_shader_code, 2427 0, 2428 0, 2429 NULL, 2430 0, 2431 0, 2432 NULL, 2433 0, 2434 NULL, 2435 0, 2436 8, 2437 }; 2438 2439 static const uint8_t spm_load_8X_4_regs_shader_code[8] = { 0 }; 2440 2441 static const struct pvr_shader_factory_info spm_load_8X_4_regs_info = { 2442 0, 2443 0, 2444 0, 2445 0, 2446 0, 2447 sizeof(spm_load_8X_4_regs_shader_code), 2448 spm_load_8X_4_regs_shader_code, 2449 0, 2450 0, 2451 NULL, 2452 0, 2453 0, 2454 NULL, 2455 0, 2456 NULL, 2457 0, 2458 8, 2459 }; 2460 2461 static const uint8_t spm_load_8X_1_buffers_shader_code[8] = { 0 }; 2462 2463 static const uint32_t spm_load_8X_1_buffers_const_dest[14] = { 0 }; 2464 2465 static const struct pvr_shader_factory_info spm_load_8X_1_buffers_info = { 2466 0, 2467 0, 2468 0, 2469 0, 2470 0, 2471 sizeof(spm_load_8X_1_buffers_shader_code), 2472 spm_load_8X_1_buffers_shader_code, 2473 0, 2474 0, 2475 NULL, 2476 0, 2477 0, 2478 spm_load_8X_1_buffers_const_dest, 2479 0, 2480 NULL, 2481 0, 2482 8, 2483 }; 2484 2485 static const uint8_t spm_load_8X_2_buffers_shader_code[8] = { 0 }; 2486 2487 static const uint32_t spm_load_8X_2_buffers_const_dest[14] = { 0 }; 2488 2489 static const struct pvr_shader_factory_info spm_load_8X_2_buffers_info = { 2490 0, 2491 0, 2492 0, 2493 0, 2494 0, 2495 sizeof(spm_load_8X_2_buffers_shader_code), 2496 spm_load_8X_2_buffers_shader_code, 2497 0, 2498 0, 2499 NULL, 2500 0, 2501 0, 2502 spm_load_8X_2_buffers_const_dest, 2503 0, 2504 NULL, 2505 0, 2506 8, 2507 }; 2508 2509 static const uint8_t spm_load_8X_3_buffers_shader_code[8] = { 0 }; 2510 2511 static const uint32_t spm_load_8X_3_buffers_const_dest[14] = { 0 }; 2512 2513 static const struct pvr_shader_factory_info spm_load_8X_3_buffers_info = { 2514 0, 2515 0, 2516 0, 2517 0, 2518 0, 2519 sizeof(spm_load_8X_3_buffers_shader_code), 2520 spm_load_8X_3_buffers_shader_code, 2521 0, 2522 0, 2523 NULL, 2524 0, 2525 0, 2526 spm_load_8X_3_buffers_const_dest, 2527 0, 2528 NULL, 2529 0, 2530 8, 2531 }; 2532 2533 static const uint8_t spm_load_8X_4_buffers_shader_code[8] = { 0 }; 2534 2535 static const uint32_t spm_load_8X_4_buffers_const_dest[14] = { 0 }; 2536 2537 static const struct pvr_shader_factory_info spm_load_8X_4_buffers_info = { 2538 0, 2539 0, 2540 0, 2541 0, 2542 0, 2543 sizeof(spm_load_8X_4_buffers_shader_code), 2544 spm_load_8X_4_buffers_shader_code, 2545 0, 2546 0, 2547 NULL, 2548 0, 2549 0, 2550 spm_load_8X_4_buffers_const_dest, 2551 0, 2552 NULL, 2553 0, 2554 8, 2555 }; 2556 2557 static const uint8_t spm_load_8X_5_buffers_shader_code[8] = { 0 }; 2558 2559 static const uint32_t spm_load_8X_5_buffers_const_dest[14] = { 0 }; 2560 2561 static const struct pvr_shader_factory_info spm_load_8X_5_buffers_info = { 2562 0, 2563 0, 2564 0, 2565 0, 2566 0, 2567 sizeof(spm_load_8X_5_buffers_shader_code), 2568 spm_load_8X_5_buffers_shader_code, 2569 0, 2570 0, 2571 NULL, 2572 0, 2573 0, 2574 spm_load_8X_5_buffers_const_dest, 2575 0, 2576 NULL, 2577 0, 2578 8, 2579 }; 2580 2581 static const uint8_t spm_load_8X_6_buffers_shader_code[8] = { 0 }; 2582 2583 static const uint32_t spm_load_8X_6_buffers_const_dest[14] = { 0 }; 2584 2585 static const struct pvr_shader_factory_info spm_load_8X_6_buffers_info = { 2586 0, 2587 0, 2588 0, 2589 0, 2590 0, 2591 sizeof(spm_load_8X_6_buffers_shader_code), 2592 spm_load_8X_6_buffers_shader_code, 2593 0, 2594 0, 2595 NULL, 2596 0, 2597 0, 2598 spm_load_8X_6_buffers_const_dest, 2599 0, 2600 NULL, 2601 0, 2602 8, 2603 }; 2604 2605 static const uint8_t spm_load_8X_7_buffers_shader_code[8] = { 0 }; 2606 2607 static const uint32_t spm_load_8X_7_buffers_const_dest[14] = { 0 }; 2608 2609 static const struct pvr_shader_factory_info spm_load_8X_7_buffers_info = { 2610 0, 2611 0, 2612 0, 2613 0, 2614 0, 2615 sizeof(spm_load_8X_7_buffers_shader_code), 2616 spm_load_8X_7_buffers_shader_code, 2617 0, 2618 0, 2619 NULL, 2620 0, 2621 0, 2622 spm_load_8X_7_buffers_const_dest, 2623 0, 2624 NULL, 2625 0, 2626 8, 2627 }; 2628 static struct { 2629 const uint8_t *code; 2630 const uint32_t size; 2631 const struct pvr_shader_factory_info *info; 2632 } const spm_load_collection[40] = { 2633 { spm_load_1X_1_regs_shader_code, 2634 sizeof(spm_load_1X_1_regs_shader_code), 2635 &spm_load_1X_1_regs_info }, 2636 { spm_load_1X_2_regs_shader_code, 2637 sizeof(spm_load_1X_2_regs_shader_code), 2638 &spm_load_1X_2_regs_info }, 2639 { spm_load_1X_4_regs_shader_code, 2640 sizeof(spm_load_1X_4_regs_shader_code), 2641 &spm_load_1X_4_regs_info }, 2642 { spm_load_1X_1_buffers_shader_code, 2643 sizeof(spm_load_1X_1_buffers_shader_code), 2644 &spm_load_1X_1_buffers_info }, 2645 { spm_load_1X_2_buffers_shader_code, 2646 sizeof(spm_load_1X_2_buffers_shader_code), 2647 &spm_load_1X_2_buffers_info }, 2648 { spm_load_1X_3_buffers_shader_code, 2649 sizeof(spm_load_1X_3_buffers_shader_code), 2650 &spm_load_1X_3_buffers_info }, 2651 { spm_load_1X_4_buffers_shader_code, 2652 sizeof(spm_load_1X_4_buffers_shader_code), 2653 &spm_load_1X_4_buffers_info }, 2654 { spm_load_1X_5_buffers_shader_code, 2655 sizeof(spm_load_1X_5_buffers_shader_code), 2656 &spm_load_1X_5_buffers_info }, 2657 { spm_load_1X_6_buffers_shader_code, 2658 sizeof(spm_load_1X_6_buffers_shader_code), 2659 &spm_load_1X_6_buffers_info }, 2660 { spm_load_1X_7_buffers_shader_code, 2661 sizeof(spm_load_1X_7_buffers_shader_code), 2662 &spm_load_1X_7_buffers_info }, 2663 { spm_load_2X_1_regs_shader_code, 2664 sizeof(spm_load_2X_1_regs_shader_code), 2665 &spm_load_2X_1_regs_info }, 2666 { spm_load_2X_2_regs_shader_code, 2667 sizeof(spm_load_2X_2_regs_shader_code), 2668 &spm_load_2X_2_regs_info }, 2669 { spm_load_2X_4_regs_shader_code, 2670 sizeof(spm_load_2X_4_regs_shader_code), 2671 &spm_load_2X_4_regs_info }, 2672 { spm_load_2X_1_buffers_shader_code, 2673 sizeof(spm_load_2X_1_buffers_shader_code), 2674 &spm_load_2X_1_buffers_info }, 2675 { spm_load_2X_2_buffers_shader_code, 2676 sizeof(spm_load_2X_2_buffers_shader_code), 2677 &spm_load_2X_2_buffers_info }, 2678 { spm_load_2X_3_buffers_shader_code, 2679 sizeof(spm_load_2X_3_buffers_shader_code), 2680 &spm_load_2X_3_buffers_info }, 2681 { spm_load_2X_4_buffers_shader_code, 2682 sizeof(spm_load_2X_4_buffers_shader_code), 2683 &spm_load_2X_4_buffers_info }, 2684 { spm_load_2X_5_buffers_shader_code, 2685 sizeof(spm_load_2X_5_buffers_shader_code), 2686 &spm_load_2X_5_buffers_info }, 2687 { spm_load_2X_6_buffers_shader_code, 2688 sizeof(spm_load_2X_6_buffers_shader_code), 2689 &spm_load_2X_6_buffers_info }, 2690 { spm_load_2X_7_buffers_shader_code, 2691 sizeof(spm_load_2X_7_buffers_shader_code), 2692 &spm_load_2X_7_buffers_info }, 2693 { spm_load_4X_1_regs_shader_code, 2694 sizeof(spm_load_4X_1_regs_shader_code), 2695 &spm_load_4X_1_regs_info }, 2696 { spm_load_4X_2_regs_shader_code, 2697 sizeof(spm_load_4X_2_regs_shader_code), 2698 &spm_load_4X_2_regs_info }, 2699 { spm_load_4X_4_regs_shader_code, 2700 sizeof(spm_load_4X_4_regs_shader_code), 2701 &spm_load_4X_4_regs_info }, 2702 { spm_load_4X_1_buffers_shader_code, 2703 sizeof(spm_load_4X_1_buffers_shader_code), 2704 &spm_load_4X_1_buffers_info }, 2705 { spm_load_4X_2_buffers_shader_code, 2706 sizeof(spm_load_4X_2_buffers_shader_code), 2707 &spm_load_4X_2_buffers_info }, 2708 { spm_load_4X_3_buffers_shader_code, 2709 sizeof(spm_load_4X_3_buffers_shader_code), 2710 &spm_load_4X_3_buffers_info }, 2711 { spm_load_4X_4_buffers_shader_code, 2712 sizeof(spm_load_4X_4_buffers_shader_code), 2713 &spm_load_4X_4_buffers_info }, 2714 { spm_load_4X_5_buffers_shader_code, 2715 sizeof(spm_load_4X_5_buffers_shader_code), 2716 &spm_load_4X_5_buffers_info }, 2717 { spm_load_4X_6_buffers_shader_code, 2718 sizeof(spm_load_4X_6_buffers_shader_code), 2719 &spm_load_4X_6_buffers_info }, 2720 { spm_load_4X_7_buffers_shader_code, 2721 sizeof(spm_load_4X_7_buffers_shader_code), 2722 &spm_load_4X_7_buffers_info }, 2723 { spm_load_8X_1_regs_shader_code, 2724 sizeof(spm_load_8X_1_regs_shader_code), 2725 &spm_load_8X_1_regs_info }, 2726 { spm_load_8X_2_regs_shader_code, 2727 sizeof(spm_load_8X_2_regs_shader_code), 2728 &spm_load_8X_2_regs_info }, 2729 { spm_load_8X_4_regs_shader_code, 2730 sizeof(spm_load_8X_4_regs_shader_code), 2731 &spm_load_8X_4_regs_info }, 2732 { spm_load_8X_1_buffers_shader_code, 2733 sizeof(spm_load_8X_1_buffers_shader_code), 2734 &spm_load_8X_1_buffers_info }, 2735 { spm_load_8X_2_buffers_shader_code, 2736 sizeof(spm_load_8X_2_buffers_shader_code), 2737 &spm_load_8X_2_buffers_info }, 2738 { spm_load_8X_3_buffers_shader_code, 2739 sizeof(spm_load_8X_3_buffers_shader_code), 2740 &spm_load_8X_3_buffers_info }, 2741 { spm_load_8X_4_buffers_shader_code, 2742 sizeof(spm_load_8X_4_buffers_shader_code), 2743 &spm_load_8X_4_buffers_info }, 2744 { spm_load_8X_5_buffers_shader_code, 2745 sizeof(spm_load_8X_5_buffers_shader_code), 2746 &spm_load_8X_5_buffers_info }, 2747 { spm_load_8X_6_buffers_shader_code, 2748 sizeof(spm_load_8X_6_buffers_shader_code), 2749 &spm_load_8X_6_buffers_info }, 2750 { spm_load_8X_7_buffers_shader_code, 2751 sizeof(spm_load_8X_7_buffers_shader_code), 2752 &spm_load_8X_7_buffers_info }, 2753 }; 2754 2755 #endif /* PVR_STATIC_SHADERS_H */ 2756