main/program_binary: In ProgramBinary set link status as LINKING_SKIPPED
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 11 Mar 2018 09:18:55 +0000 (01:18 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 19 Mar 2018 16:57:09 +0000 (09:57 -0700)
commit2ed288363fe8dced45f06b7cd66adbbf703a2012
tree6c5d03959b1772827c71b954ac0dd641e2593147
parentd2b74ca2b503e1b8c1e58ac1c33d3631e1b30d6e
main/program_binary: In ProgramBinary set link status as LINKING_SKIPPED

This change allows the disk shader cache to work with programs loaded
with ProgramBinary. Drivers check for LINKING_SKIPPED, and if set,
then they try to use the shader cache.

Since the program loaded by ProgramBinary is similar to loading the
shader from the disk cache, this is probably more appropriate.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/program_binary.c