Commit 3c6edc5
ssjia
[ET-VK] Fix pipeline indexing bug in batch create_pipelines
The original code created pipelines for all descriptors but used a separate
index counter during cache insertion that only incremented for non-cached
entries. This caused incorrect pipeline handles to be associated with keys
when some descriptors were already cached, and leaked handles for duplicates.
Fix by filtering out already-cached descriptors upfront, ensuring 1:1
correspondence between the created pipelines array and cache insertions.
Authored with Claude.
Differential Revision: [D92171360](https://our.internmc.facebook.com/intern/diff/D92171360/)
[ghstack-poisoned]1 parent ef49d27 commit 3c6edc5
1 file changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
463 | 478 | | |
464 | 479 | | |
465 | 480 | | |
| |||
474 | 489 | | |
475 | 490 | | |
476 | 491 | | |
477 | | - | |
| 492 | + | |
478 | 493 | | |
479 | 494 | | |
480 | 495 | | |
| |||
513 | 528 | | |
514 | 529 | | |
515 | 530 | | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
524 | 535 | | |
525 | 536 | | |
526 | 537 | | |
| |||
0 commit comments