iris: whitespace fixes
This commit is contained in:
@@ -459,7 +459,7 @@ iris_resource_from_handle(struct pipe_screen *pscreen,
|
|||||||
|
|
||||||
uint64_t modifier = whandle->modifier;
|
uint64_t modifier = whandle->modifier;
|
||||||
if (modifier == DRM_FORMAT_MOD_INVALID) {
|
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 =
|
const struct isl_drm_modifier_info *mod_info =
|
||||||
isl_drm_modifier_get_info(modifier);
|
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) {
|
if (swizzled) {
|
||||||
/* adjust for bit6 swizzling */
|
/* adjust for bit6 swizzling */
|
||||||
if (((byte_x / 8) % 2) == 1) {
|
if (((byte_x / 8) % 2) == 1) {
|
||||||
if (((byte_y / 8) % 2) == 0) {
|
if (((byte_y / 8) % 2) == 0) {
|
||||||
u += 64;
|
u += 64;
|
||||||
} else {
|
} else {
|
||||||
u -= 64;
|
u -= 64;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@ struct iris_format_info {
|
|||||||
* They contain the storage (BO) and layout information (ISL surface).
|
* They contain the storage (BO) and layout information (ISL surface).
|
||||||
*/
|
*/
|
||||||
struct iris_resource {
|
struct iris_resource {
|
||||||
struct pipe_resource base;
|
struct pipe_resource base;
|
||||||
enum pipe_format internal_format;
|
enum pipe_format internal_format;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user