mesa/compiler: add stage to shader_info
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 31 Oct 2016 08:57:57 +0000 (19:57 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 29 Dec 2016 23:57:15 +0000 (10:57 +1100)
commit0de6f6223ab917ec532e3fe3afd14f8f5cd3b87b
tree7ca0fa9959197336f3cb88a2e2991ad2ee76115a
parent88b41239f98c2d9b3e6cf9185b74876bb77362eb
mesa/compiler: add stage to shader_info

This will allow us to simplify the current program logic for SSO.

Also since we aim to detach shader_info from nir_shader this will come
in handy avoiding passing nir_shader around just to keep track of
the stage we are dealing with.

V2: set stage for arb asm programs also.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/shader_info.h
src/mesa/program/program.c