Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: Use dev_priv in INTEL_INFO in i915_gem_execbuffer.c

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

+1 -1
+1 -1
drivers/gpu/drm/i915/i915_gem_execbuffer.c
··· 1878 1878 exec2_list[i].relocs_ptr = exec_list[i].relocs_ptr; 1879 1879 exec2_list[i].alignment = exec_list[i].alignment; 1880 1880 exec2_list[i].offset = exec_list[i].offset; 1881 - if (INTEL_INFO(dev)->gen < 4) 1881 + if (INTEL_GEN(to_i915(dev)) < 4) 1882 1882 exec2_list[i].flags = EXEC_OBJECT_NEEDS_FENCE; 1883 1883 else 1884 1884 exec2_list[i].flags = 0;