[Intel-gfx] [PATCH 09/22] drm/i915: Make IS_GEN-range macro only take dev_priv
Tvrtko Ursulin
tursulin at ursulin.net
Wed Oct 5 12:33:36 UTC 2016
From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
Saves 944 bytes of .rodata strings.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
drivers/gpu/drm/i915/i915_drv.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 619bec953b0d..06320001f3a8 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -2628,7 +2628,7 @@ struct drm_i915_cmd_table {
__e = BITS_PER_LONG - 1; \
else \
__e = (e) - 1; \
- !!(INTEL_INFO(p)->gen_mask & GENMASK((__e), (__s))); \
+ !!(dev_priv->info.gen_mask & GENMASK((__e), (__s))); \
})
/*
--
2.7.4
More information about the Intel-gfx
mailing list