i965: check tcs for NULL dereference
authorMark Janes <mark.a.janes@intel.com>
Fri, 13 May 2016 20:04:56 +0000 (13:04 -0700)
committerMark Janes <mark.a.janes@intel.com>
Mon, 16 May 2016 18:11:11 +0000 (11:11 -0700)
commitfd854c1add853eb3363d735da2faca9c9c092e4c
tree5b8a18ef25f44aef1bcb21059126b1f4797a49b1
parentbf91034d44a992b1e5a5aa49a3d3a6740be5b453
i965: check tcs for NULL dereference

Coverity issue 1361544 found an instance where the tcs variable is
checked for NULL, but unconditionally dereferenced later in the same
function.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_tcs.c