[Mesa-dev] [RFC PATCH] st/mesa/r200/i915/i965: move ARB program fields into a union
Eric Anholt
eric at anholt.net
Wed Nov 2 16:07:45 UTC 2016
Timothy Arceri <timothy.arceri at collabora.com> 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"?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161102/a9906faf/attachment.sig>
More information about the mesa-dev
mailing list