v3d: Fix segfault when failing to compile a program.
authorEric Anholt <eric@anholt.net>
Mon, 31 Dec 2018 19:51:01 +0000 (11:51 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 2 Jan 2019 22:12:29 +0000 (14:12 -0800)
commit3a81c753a3cfdcea215268c00f98ac87a09902e1
tree27c051e8b959f8b506a91c0d072ef74bd473d997
parent3ae57957be0296eea6799655e5f945db714c2584
v3d: Fix segfault when failing to compile a program.

We'll still fail at draw time, but this avoids a regression in shader-db
execution once I enable TLB writes in precompiles.

Fixes: b38e4d313fc2 ("v3d: Create a state uploader for packing our shaders together.")
src/gallium/drivers/v3d/v3d_program.c