mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
kms_rotation_crc: Fix style issue: '{' at the end of lines
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
1025a114c6
commit
de9c1687f9
@ -183,12 +183,10 @@ static bool check_plane_type(int drm_fd, uint32_t plane_id, uint32_t type)
|
|||||||
|
|
||||||
props = drmModeObjectGetProperties(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE);
|
props = drmModeObjectGetProperties(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE);
|
||||||
|
|
||||||
for (i = 0; i < props->count_props; i++)
|
for (i = 0; i < props->count_props; i++) {
|
||||||
{
|
|
||||||
drmModePropertyPtr prop = drmModeGetProperty(drm_fd, props->props[i]);
|
drmModePropertyPtr prop = drmModeGetProperty(drm_fd, props->props[i]);
|
||||||
|
|
||||||
if (strcmp(prop->name, "type") == 0)
|
if (strcmp(prop->name, "type") == 0) {
|
||||||
{
|
|
||||||
if (props->prop_values[i] == type) {
|
if (props->prop_values[i] == type) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -250,23 +248,19 @@ static int set_plane_property(data_t *data, int plane_id, const char *prop_name,
|
|||||||
value = (uint64_t)val;
|
value = (uint64_t)val;
|
||||||
props = drmModeObjectGetProperties(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE);
|
props = drmModeObjectGetProperties(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE);
|
||||||
|
|
||||||
for (i = 0; i < props->count_props; i++)
|
for (i = 0; i < props->count_props; i++) {
|
||||||
{
|
|
||||||
drmModePropertyPtr prop = drmModeGetProperty(drm_fd, props->props[i]);
|
drmModePropertyPtr prop = drmModeGetProperty(drm_fd, props->props[i]);
|
||||||
igt_info("\nProp->name=%s: plane_id:%d\n ", prop->name, plane_id);
|
igt_info("\nProp->name=%s: plane_id:%d\n ", prop->name, plane_id);
|
||||||
|
|
||||||
if (strcmp(prop->name, prop_name) == 0)
|
if (strcmp(prop->name, prop_name) == 0) {
|
||||||
{
|
|
||||||
ret = drmModeObjectSetProperty(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE,
|
ret = drmModeObjectSetProperty(drm_fd, plane_id, DRM_MODE_OBJECT_PLANE,
|
||||||
(uint32_t)prop->prop_id, value);
|
(uint32_t)prop->prop_id, value);
|
||||||
if (ret)
|
if (ret) {
|
||||||
{
|
|
||||||
igt_info("set_property \"%s\" to %d for plane %d is failed, err:%d\n", prop_name, val, plane_id, ret);
|
igt_info("set_property \"%s\" to %d for plane %d is failed, err:%d\n", prop_name, val, plane_id, ret);
|
||||||
drmModeFreeProperty(prop);
|
drmModeFreeProperty(prop);
|
||||||
drmModeFreeObjectProperties(props);
|
drmModeFreeObjectProperties(props);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
/* Collect crc after rotation */
|
/* Collect crc after rotation */
|
||||||
igt_pipe_crc_collect_crc(data->pipe_crc, crc_output);
|
igt_pipe_crc_collect_crc(data->pipe_crc, crc_output);
|
||||||
drmModeFreeProperty(prop);
|
drmModeFreeProperty(prop);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user