When IndirectParameterEnable==true it's not actually used by the hardware,
but if it's not initialized and INTEL_DEBUG=bat is set, then Valgrind complains.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15850>
bool uses_drawid)
{
uint32_t len = GENX(3DMESH_1D_length) + uses_drawid;
- anv_batch_emitn(batch, len, GENX(3DMESH_1D),
+ uint32_t *dw = anv_batch_emitn(batch, len, GENX(3DMESH_1D),
.PredicateEnable = predicate_enable,
.IndirectParameterEnable = true,
.ExtendedParameter0Present = uses_drawid);
+ if (uses_drawid)
+ dw[len - 1] = 0;
}
void