radeonsi/nir: call nir_serialize only once per shader
authorMarek Olšák <marek.olsak@amd.com>
Thu, 7 Nov 2019 23:43:07 +0000 (18:43 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 8 Nov 2019 20:30:28 +0000 (15:30 -0500)
commit8b30114dda8b785c9ee3812638d4bd7c4bf658e7
treeb46134d87efb0e404d1b79431afe4bbf011bf5e6
parentad56022b0d96ca6a823623dd93b3f0bf9de17ba8
radeonsi/nir: call nir_serialize only once per shader

We were calling it twice.

First serialize it, then use it to compute the cache key.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_state_shaders.c