agx: fix atomics in tess count shaders

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32081>
This commit is contained in:
Alyssa Rosenzweig 2024-10-30 12:57:42 -04:00 committed by Marge Bot
parent 2c7635ab63
commit ddc6d9e984

View file

@ -1274,6 +1274,8 @@ libagx_tess_quad(constant struct libagx_tess_args *p,
DefineClockwiseTriangle(&ctx, 1, 2, 3, /*indexStorageOffset*/ 3);
} else {
libagx_draw_points(&ctx, p, patch, 4);
if (mode == LIBAGX_TESS_MODE_COUNT)
return;
}
global struct libagx_tess_point *points =