Indirect dispatches of more than 65,535 groups run whole (VICTORY_INDIRECT_WIDE)
The title's tile lists are dispatches of a group per tile: in the captured frame 2dc364df5d3278b8 asks for 67,440 groups (the one before it 67,272) and 940c2635dc1312f4 for 47,760, the 115,200 tiles of 2560x1440. The clamp cut the first to 65,535: 1,905 tiles at the list's end, the lowest of the picture, did not run. Up to 2^20 groups run as asked on AMD cards (a test on the card: every group once, under its number); more still runs 65,535. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit b856c46dd10bbb550157b255d113a3cca2f3f38a)
This commit is contained in:
1 parent
8ece2ffe7c
commit
84eae352a2
2 files changed
+113
-8
No files matched your search
@@ -81,8 +81,9 @@ void main(uint3 id : SV_DispatchThreadID, uint gi : SV_GroupIndex) {
|
||||
record[1] = min(record[1], (1u << 26) / max(record[0], 1u));
|
||||
cost = record[0] * record[1];
|
||||
} else if (kind == 2) {
|
||||
uint3 g = min(uint3(record[0], record[1], record[2]), uint3(65535u, 65535u, 65535u));
|
||||
if (g.z != 0 && g.x * g.y > GROUPS / g.z) {
|
||||
uint3 g = uint3(record[0], record[1], record[2]);
|
||||
g = min(g, uint3(g.x <= WIDEST ? WIDEST : 65535u, 65535u, 65535u));
|
||||
if ((g.y != 0 && g.x > GROUPS / g.y) || (g.z != 0 && g.x * g.y > GROUPS / g.z)) {
|
||||
g = uint3(0, 0, 0);
|
||||
}
|
||||
cost = g.x * g.y * g.z * 64u;
|
||||
|
||||
Reference in new issue
Block a user