Timothy Arceri <[email protected]> writes:

> I'm about to do some refactoring that will move a bunch of glsl only
> fields from gl_linked_program into gl_program.
>
> If we wan't to share memory it makes sense to do it while I move
> things. I just wanted to see what people think about this before
> I get started as it's not going to be fun to go back and undo.
>
> It seems common for games to compile 2000 programs or more so at
>
> 32bits X 2000 programs X 22 fields X 2 (at least) stages
>
> This should give us something like 352 kilobytes in savings.
>
> What do you think?

I like the idea, generally.  So, if I get the plan right, for the
ir_to_mesa path we'll generate an arb-type gl_program, and for
not-that-path we'll generate a glsl-type gl_program?

Any chance we could call the union tag "arb" or "asm" instead of "a"?

Attachment: signature.asc
Description: PGP signature

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to