mesa: make struct in gl_program a union and remove FIXME
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 4 Dec 2021 12:23:07 +0000 (23:23 +1100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 7 Dec 2021 05:24:47 +0000 (05:24 +0000)
commitca16c271fa7b016714899c7dd92e0e7dd95c08e2
tree4abdee3f10551503022b34d58f08a4af76948c53
parentdf6ff88fd01c84974e5b864b6cd32bd9b524a48a
mesa: make struct in gl_program a union and remove FIXME

Now that the classic drivers that were mixing the use of these asm
and glsl shader fields are gone we can finally use a union here.

This basically reverts commit 9d99dc4bc1fd but also moves a
read of IsPositionInvariant inside an arb asm only code block
for safety.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14059>
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_program.c