mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
gfxstream: Address some Werror errors from ag/35389434
Fix things. Test: github CI Reviewed-by: Aaron Ruby <aruby@qnx.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37410>
This commit is contained in:
parent
f1c1dc66d4
commit
03a4d7ff7e
1 changed files with 2 additions and 4 deletions
|
|
@ -565,11 +565,9 @@ def decode_vkFlushMappedMemoryRanges(typeInfo: VulkanTypeInfo, api, cgen):
|
|||
cgen.beginIf("m_prevSeqno")
|
||||
cgen.stmt("m_prevSeqno = m_prevSeqno.value() - 1")
|
||||
cgen.endIf()
|
||||
cgen.stmt("return ptr - (unsigned char*)buf;")
|
||||
cgen.stmt("return ptr - (unsigned char*)buf")
|
||||
cgen.endIf()
|
||||
cgen.stmt("auto range = pMemoryRanges[i]")
|
||||
cgen.stmt("auto memory = pMemoryRanges[i].memory")
|
||||
cgen.stmt("auto size = pMemoryRanges[i].size")
|
||||
cgen.stmt("auto offset = pMemoryRanges[i].offset")
|
||||
cgen.stmt("uint64_t readStream = 0")
|
||||
cgen.stmt("memcpy(&readStream, *readStreamPtrPtr, sizeof(uint64_t)); *readStreamPtrPtr += sizeof(uint64_t)")
|
||||
|
|
@ -581,7 +579,7 @@ def decode_vkFlushMappedMemoryRanges(typeInfo: VulkanTypeInfo, api, cgen):
|
|||
cgen.beginIf("m_prevSeqno")
|
||||
cgen.stmt("m_prevSeqno = m_prevSeqno.value() - 1")
|
||||
cgen.endIf()
|
||||
cgen.stmt("return ptr - (unsigned char*)buf;")
|
||||
cgen.stmt("return ptr - (unsigned char*)buf")
|
||||
cgen.endIf()
|
||||
cgen.stmt("sizeLeft -= readStream")
|
||||
cgen.stmt("uint8_t* targetRange = hostPtr + offset")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue