u_blitter: do error checking assertions for shader caching
authorBrian Paul <brianp@vmware.com>
Tue, 21 Oct 2014 16:22:35 +0000 (10:22 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 22 Oct 2014 23:33:40 +0000 (17:33 -0600)
commit27de89d2667bb154a4334f839397420a11b02bab
treef797ac9984dc578bd496f1dceaa3a3ebadcdfb9e
parent7a652c41b4de4bdbb954a4ebf6cdb605d197e999
u_blitter: do error checking assertions for shader caching

If the user calls util_blitter_cache_all_shaders() set a flag and assert
that we never try to create any new fragment shaders after that point.
If the assertions fails, it means we missed generating some shader in
util_blitter_cache_all_shaders().

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_blitter.c