OSDN Git Service

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)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 14 Nov 2019 16:43:14 +0000 (08:43 -0800)
commitf393c9234544ea574ae42081e02271cf0e3588f8
tree376c56c460920b19cde9bdb2a19b4207204ec238
parent4fbe772b2376bca71a8618e17713e4379a461a96
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>
(cherry picked from commit 0aaf47f7cd50b9c07c1297fe8daff1b2693a6729)
src/intel/vulkan/genX_pipeline.c