mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
amd/addrlib: fix missing va_end() after va_copy()
There's no reason to use va_copy here. CID: 1418113 Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Fixes:e7fc664b91("winsys/amdgpu: add addrlib - texture addressing and alignment calculator") Reviewed-by: Marek Olšák <marek.olsak@amd.com> (cherry picked from commit34126ed248)
This commit is contained in:
parent
89db1532fc
commit
5e5882a7aa
1 changed files with 2 additions and 6 deletions
|
|
@ -216,20 +216,16 @@ VOID Object::DebugPrint(
|
|||
#if DEBUG
|
||||
if (m_client.callbacks.debugPrint != NULL)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, pDebugString);
|
||||
|
||||
ADDR_DEBUGPRINT_INPUT debugPrintInput = {0};
|
||||
|
||||
debugPrintInput.size = sizeof(ADDR_DEBUGPRINT_INPUT);
|
||||
debugPrintInput.pDebugString = const_cast<CHAR*>(pDebugString);
|
||||
debugPrintInput.hClient = m_client.handle;
|
||||
va_copy(debugPrintInput.ap, ap);
|
||||
va_start(debugPrintInput.ap, pDebugString);
|
||||
|
||||
m_client.callbacks.debugPrint(&debugPrintInput);
|
||||
|
||||
va_end(ap);
|
||||
va_end(debugPrintInput.ap);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue