mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 23:41:13 +00:00
freedreno/cffdec: Fix indentation
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12489>
This commit is contained in:
parent
295807e666
commit
32f13cb9bc
@ -88,8 +88,7 @@ buffer_contains_hostptr(struct buffer *buf, void *hostptr)
|
||||
uint64_t
|
||||
gpuaddr(void *hostptr)
|
||||
{
|
||||
rb_tree_foreach(struct buffer, buf, &buffers, node)
|
||||
{
|
||||
rb_tree_foreach (struct buffer, buf, &buffers, node) {
|
||||
if (buffer_contains_hostptr(buf, hostptr))
|
||||
return buf->gpuaddr + (hostptr - buf->hostptr);
|
||||
}
|
||||
@ -165,8 +164,7 @@ has_dumped(uint64_t gpuaddr, unsigned enable_mask)
|
||||
void
|
||||
reset_buffers(void)
|
||||
{
|
||||
rb_tree_foreach_safe(struct buffer, buf, &buffers, node)
|
||||
{
|
||||
rb_tree_foreach_safe (struct buffer, buf, &buffers, node) {
|
||||
rb_tree_remove(&buffers, &buf->node);
|
||||
free(buf->hostptr);
|
||||
free(buf);
|
||||
|
Loading…
Reference in New Issue
Block a user