Commit bd0414c
authored
const_array_elements limit test: split into MAX, MAX/8, MAX/64 cases (#4497)
The MAX const array size is 2047.
The driver compiler can take a long time compiling the MAX case.
For example a laptop with an Intel Gen12 LP GPU with the Mesa
driver can take 28s to compile the shader. This exceeds Chrome's GPU
watchdog timeout (10s) and the test will fail.
Instead of completely disabling the test, split it into cases
for MAX, MAX/8, and MAX/64 elements. This lets us skip the very
largest cases, but still attempt smaller bug significant array
sizes. That lets us get some signal that the large-ish const
arrays are viable.
The additional runtime for the new cases are insignificant
compared to the full case.
Fixed: #44961 parent b05a778 commit bd0414c
1 file changed
Lines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
415 | 425 | | |
416 | | - | |
| 426 | + | |
| 427 | + | |
417 | 428 | | |
418 | 429 | | |
419 | | - | |
| 430 | + | |
420 | 431 | | |
421 | 432 | | |
422 | 433 | | |
| |||
430 | 441 | | |
431 | 442 | | |
432 | 443 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 444 | + | |
439 | 445 | | |
0 commit comments