iris: whitespace fixes

This commit is contained in:
Kenneth Graunke 2018-12-10 00:49:35 -08:00
parent b2fa90706e
commit 5481887ca8
2 changed files with 7 additions and 7 deletions

View File

@ -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;
}
}
}

View File

@ -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;
/**