aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_execbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_execbuffer.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_execbuffer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index 57bec08e80c5..d02cfaefe1c8 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -1180,14 +1180,14 @@ validate_exec_list(struct drm_device *dev,
1180 if (exec[i].offset != 1180 if (exec[i].offset !=
1181 gen8_canonical_addr(exec[i].offset & PAGE_MASK)) 1181 gen8_canonical_addr(exec[i].offset & PAGE_MASK))
1182 return -EINVAL; 1182 return -EINVAL;
1183
1184 /* From drm_mm perspective address space is continuous,
1185 * so from this point we're always using non-canonical
1186 * form internally.
1187 */
1188 exec[i].offset = gen8_noncanonical_addr(exec[i].offset);
1189 } 1183 }
1190 1184
1185 /* From drm_mm perspective address space is continuous,
1186 * so from this point we're always using non-canonical
1187 * form internally.
1188 */
1189 exec[i].offset = gen8_noncanonical_addr(exec[i].offset);
1190
1191 if (exec[i].alignment && !is_power_of_2(exec[i].alignment)) 1191 if (exec[i].alignment && !is_power_of_2(exec[i].alignment))
1192 return -EINVAL; 1192 return -EINVAL;
1193 1193