anv: Initialize depth_bounds_test_enable when not explicitly set
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 12 Nov 2019 18:42:09 +0000 (10:42 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 13 Nov 2019 18:13:27 +0000 (10:13 -0800)
commit0aaf47f7cd50b9c07c1297fe8daff1b2693a6729
treec03987559c3da730b65f258ad5c4f2c984e08c16
parent771d23584a1fa79f2547a74ff680fbec56bb2ee9
anv: Initialize depth_bounds_test_enable when not explicitly set

This was causing uninitialized value to end up propagated to the
3DSTATE_DEPTH_BOUNDS packet, leading to asserts on packet
building due to the value being greater than 1.

Fixes: 939ddccb7a5 ("anv: Add support for depth bounds testing.")
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/intel/vulkan/genX_pipeline.c