Sksl for loop capped to a max of 128?

12 views
Skip to first unread message

Haykke

unread,
Jul 11, 2022, 4:08:10 AMJul 11
to skia-discuss
Hi, I know there are reasons why a sksl is capped to 128, so, is there any way to un-cap this even at the cost of performance, or at least a way to work around this. My problem is that I'm using arrays bigger than this 128 and I need to address them with constants.
Thanks.

Brian Osman

unread,
Jul 11, 2022, 9:50:22 AMJul 11
to skia-d...@googlegroups.com
I'm guessing you're on an older branch? Back in September of last year, we changed the logic for maximum program size. The maximum iterations per loop is now *much* higher, and the only real limit is on "total program size": how many expressions or statements exist after all the loops are unrolled. I think branch m95 or newer will have the updated code.

On Mon, Jul 11, 2022 at 4:08 AM Haykke <hay...@gmail.com> wrote:
Hi, I know there are reasons why a sksl is capped to 128, so, is there any way to un-cap this even at the cost of performance, or at least a way to work around this. My problem is that I'm using arrays bigger than this 128 and I need to address them with constants.
Thanks.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/3d9e0905-a6b3-40a9-bf0f-d040e5e3ae8an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages