mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
gfxstream: use range variable for its intended purpose
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33384>
(cherry picked from commit b2b37cb1de)
This commit is contained in:
parent
79e67633c9
commit
93dcef8408
2 changed files with 7 additions and 7 deletions
|
|
@ -324,7 +324,7 @@
|
|||
"description": "gfxstream: use `range` variable for its intended purpose",
|
||||
"nominated": false,
|
||||
"nomination_type": 0,
|
||||
"resolution": 4,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -554,9 +554,9 @@ def encode_vkFlushMappedMemoryRanges(typeInfo, api, cgen):
|
|||
cgen.beginIf("!sResourceTracker->usingDirectMapping()")
|
||||
cgen.beginFor("uint32_t i = 0", "i < memoryRangeCount", "++i")
|
||||
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("auto memory = range.memory")
|
||||
cgen.stmt("auto size = range.size")
|
||||
cgen.stmt("auto offset = range.offset")
|
||||
cgen.stmt("uint64_t streamSize = 0")
|
||||
cgen.stmt("if (!memory) { %s->write(&streamSize, sizeof(uint64_t)); continue; }" % streamVar)
|
||||
cgen.stmt("auto hostPtr = sResourceTracker->getMappedPointer(memory)")
|
||||
|
|
@ -593,9 +593,9 @@ def encode_vkInvalidateMappedMemoryRanges(typeInfo, api, cgen):
|
|||
cgen.beginIf("!sResourceTracker->usingDirectMapping()")
|
||||
cgen.beginFor("uint32_t i = 0", "i < memoryRangeCount", "++i")
|
||||
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("auto memory = range.memory")
|
||||
cgen.stmt("auto size = range.size")
|
||||
cgen.stmt("auto offset = range.offset")
|
||||
cgen.stmt("uint64_t streamSize = 0")
|
||||
cgen.stmt("if (!memory) { %s->read(&streamSize, sizeof(uint64_t)); continue; }" % streamVar)
|
||||
cgen.stmt("auto hostPtr = sResourceTracker->getMappedPointer(memory)")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue