i965: Add ARB_get_program_binary support using nir_serialization
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 4 Nov 2017 23:53:15 +0000 (16:53 -0700)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 8 Dec 2017 06:00:57 +0000 (17:00 +1100)
commitb4c37ce2140c0195005d865b7a4de903ef50a097
tree8e5cd34e9a1aadb80222e47e6a95c84460b8edb0
parentc1ff99fd70cd2ceb2cac4723e4fd5efc93834746
i965: Add ARB_get_program_binary support using nir_serialization

This resolves an apparent game bug described in 85564. The game
doesn't properly handle ARB_get_program_binary with 0 supported
formats.

V2 (Timothy Arceri):
 - less driver code as more has been moved into the common helpers.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85564
Signed-off-by: Timothy Arceri <tarceri@itsqueeze.com>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> (v1)
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_program.h
src/mesa/drivers/dri/i965/brw_program_binary.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/meson.build