summaryrefslogtreecommitdiffstats
path: root/src/compiler/blob.h
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-05-18 00:08:36 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-05-20 16:47:28 -0700
commit005cc9ae37ca45960d87389dc9eace5ed29d1b99 (patch)
tree7078b80fa5a7ef42ef766fc32e1d9f9dea001a60 /src/compiler/blob.h
parent12bf7cfecf52083c484602f971738475edfe497e (diff)
nir: Fix clone of nir_variable state slots
When num_state_slots is 0, don't create the array. This was triggering the following assert when running vkcube with NIR_TEST_CLONE=1 vkcube: ../src/compiler/nir/nir_split_per_member_structs.c:66: split_variable: Assertion `var->state_slots == NULL' failed. Fixes: 9fbd390dd4b "nir: Add support for cloning shaders" Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/blob.h')
0 files changed, 0 insertions, 0 deletions