summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-12-10 00:49:35 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:11 -0800
commit5481887ca82f612f787c4af21134f77bde64db68 (patch)
tree316f63f8ad09cfd5559bf3371c0cd2360459b2ec /src
parentb2fa90706e9d6edbf7b33691b6600cab14a24740 (diff)
iris: whitespace fixes
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_resource.c12
-rw-r--r--src/gallium/drivers/iris/iris_resource.h2
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;
/**