mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
anv: initialize 3DMESH_1D.ExtendedParameter0 when ExtendedParameter0Present
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>
This commit is contained in:
parent
f844ce66c8
commit
65600a34c2
1 changed files with 3 additions and 1 deletions
|
|
@ -5115,10 +5115,12 @@ emit_indirect_3dmesh_1d(struct anv_batch *batch,
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue