state = (struct GENX(VERTEX_BUFFER_STATE)) {
.VertexBufferIndex = vb,
.NullVertexBuffer = true,
+ .MOCS = anv_mocs(cmd_buffer->device, NULL,
+ ISL_SURF_USAGE_VERTEX_BUFFER_BIT),
};
}
.VertexBufferIndex = index,
.AddressModifyEnable = true,
.BufferPitch = 0,
- .MOCS = addr.bo ? anv_mocs(cmd_buffer->device, addr.bo,
- ISL_SURF_USAGE_VERTEX_BUFFER_BIT) : 0,
+ .MOCS = anv_mocs(cmd_buffer->device, addr.bo,
+ ISL_SURF_USAGE_VERTEX_BUFFER_BIT),
.NullVertexBuffer = size == 0,
#if GFX_VER >= 12
.L3BypassDisable = true,