intel/batch_decoder: decoding of 3DSTATE_CONSTANT_BODY.
authorSergii Romantsov <sergii.romantsov@gmail.com>
Thu, 12 Jul 2018 12:47:48 +0000 (15:47 +0300)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 16 Jul 2018 19:18:36 +0000 (12:18 -0700)
commitcec540fbc6f00049b8393b70219b6fe0b303b7b0
treed89fd1bd8941d26e05f519f9a9d4f5701abe9b2a
parent4054133dccef1fdf125faae13c75e8f8a19d858f
intel/batch_decoder: decoding of 3DSTATE_CONSTANT_BODY.

SNB doesn't have a definition of 3DSTATE_CONSTANT_BODY, thats
why we got segmentation fault when used INTEL_DEBUG=bat.
Fixed by adding of 3DSTATE_CONSTANT_BODY into 3DSTATE_CONSTANT
of VS, GS and PS structures.

v2: added definition of 3DSTATE_CONSTANT_BODY to the gen6.xml

Fixes: 169d8e011ae (intel: Fix 3DSTATE_CONSTANT buffer decoding.)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107190
Signed-off-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/genxml/gen6.xml
src/mesa/drivers/dri/i965/genX_state_upload.c