Skip to content

anv: ensure prog params are initialized with 0s

As a result of 9baa33ce our backend compiler leaves params pretty much untouched. So in order to avoid storing uninitialized values in the shader cache blobs, just 0 out this array.

I've considered not even allocating this array which works on gen8+ but the vec4 backend still makes a copy of this array and so it crashes on memcpy on HSW.

Signed-off-by: Lionel Landwerlin lionel.g.landwerlin@intel.com Fixes: 9baa33ce ("anv: Rework push constant handling") Reported-by: Tapani Pälli tapani.palli@intel.com

Merge request reports