From 5481887ca82f612f787c4af21134f77bde64db68 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 10 Dec 2018 00:49:35 -0800 Subject: [PATCH] iris: whitespace fixes --- src/gallium/drivers/iris/iris_resource.c | 12 ++++++------ src/gallium/drivers/iris/iris_resource.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index 6ab4614fb0e..3b8b0f51101 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -459,7 +459,7 @@ iris_resource_from_handle(struct pipe_screen *pscreen, uint64_t modifier = whandle->modifier; if (modifier == DRM_FORMAT_MOD_INVALID) { - modifier = tiling_to_modifier(res->bo->tiling_mode); + modifier = tiling_to_modifier(res->bo->tiling_mode); } const struct isl_drm_modifier_info *mod_info = isl_drm_modifier_get_info(modifier); @@ -581,11 +581,11 @@ s8_offset(uint32_t stride, uint32_t x, uint32_t y, bool swizzled) if (swizzled) { /* adjust for bit6 swizzling */ if (((byte_x / 8) % 2) == 1) { - if (((byte_y / 8) % 2) == 0) { - u += 64; - } else { - u -= 64; - } + if (((byte_y / 8) % 2) == 0) { + u += 64; + } else { + u -= 64; + } } } diff --git a/src/gallium/drivers/iris/iris_resource.h b/src/gallium/drivers/iris/iris_resource.h index 63742e8fb01..0edc1b6f3a9 100644 --- a/src/gallium/drivers/iris/iris_resource.h +++ b/src/gallium/drivers/iris/iris_resource.h @@ -45,7 +45,7 @@ struct iris_format_info { * They contain the storage (BO) and layout information (ISL surface). */ struct iris_resource { - struct pipe_resource base; + struct pipe_resource base; enum pipe_format internal_format; /** -- 2.30.2