OSDN Git Service

nir/serialize: handle var->name being NULL
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 28 Feb 2018 12:01:56 +0000 (13:01 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 1 Mar 2018 07:23:33 +0000 (08:23 +0100)
commite72fb4e61128684efc28647931a793910e190656
treed6db7bcf1db21e935b8f99a59e8fcf2815a28f68
parentba642ee3ee36d7aefd21e8b8d4da0c5c24ec0ec8
nir/serialize: handle var->name being NULL

var->name could be NULL under ARB_gl_spirv for example. And in any
case, the code is already handing var name being NULL when reading a
variable, so it is consistent to do it writing a variable too.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_serialize.c