|
@@ -2029,12 +2029,12 @@ static unsigned int intel_cursor_alignment(const struct drm_i915_private *dev_pr
|
|
|
|
|
|
static unsigned int intel_linear_alignment(const struct drm_i915_private *dev_priv)
|
|
|
{
|
|
|
- if (INTEL_INFO(dev_priv)->gen >= 9)
|
|
|
+ if (INTEL_GEN(dev_priv) >= 9)
|
|
|
return 256 * 1024;
|
|
|
else if (IS_I965G(dev_priv) || IS_I965GM(dev_priv) ||
|
|
|
IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv))
|
|
|
return 128 * 1024;
|
|
|
- else if (INTEL_INFO(dev_priv)->gen >= 4)
|
|
|
+ else if (INTEL_GEN(dev_priv) >= 4)
|
|
|
return 4 * 1024;
|
|
|
else
|
|
|
return 0;
|
|
@@ -6307,7 +6307,7 @@ static bool intel_crtc_supports_double_wide(const struct intel_crtc *crtc)
|
|
|
const struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
|
|
|
|
|
|
/* GDG double wide on either pipe, otherwise pipe A only */
|
|
|
- return INTEL_INFO(dev_priv)->gen < 4 &&
|
|
|
+ return INTEL_GEN(dev_priv) < 4 &&
|
|
|
(crtc->pipe == PIPE_A || IS_I915G(dev_priv));
|
|
|
}
|
|
|
|
|
@@ -8185,7 +8185,7 @@ static void haswell_set_pipemisc(struct drm_crtc *crtc)
|
|
|
struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
|
|
|
struct intel_crtc_state *config = intel_crtc->config;
|
|
|
|
|
|
- if (IS_BROADWELL(dev_priv) || INTEL_INFO(dev_priv)->gen >= 9) {
|
|
|
+ if (IS_BROADWELL(dev_priv) || INTEL_GEN(dev_priv) >= 9) {
|
|
|
u32 val = 0;
|
|
|
|
|
|
switch (intel_crtc->config->pipe_bpp) {
|
|
@@ -13928,7 +13928,7 @@ static int intel_framebuffer_init(struct intel_framebuffer *intel_fb,
|
|
|
* gen2/3 display engine uses the fence if present,
|
|
|
* so the tiling mode must match the fb modifier exactly.
|
|
|
*/
|
|
|
- if (INTEL_INFO(dev_priv)->gen < 4 &&
|
|
|
+ if (INTEL_GEN(dev_priv) < 4 &&
|
|
|
tiling != intel_fb_modifier_to_tiling(mode_cmd->modifier[0])) {
|
|
|
DRM_DEBUG_KMS("tiling_mode must match fb modifier exactly on gen2/3\n");
|
|
|
goto err;
|
|
@@ -14116,7 +14116,7 @@ void intel_init_display_hooks(struct drm_i915_private *dev_priv)
|
|
|
{
|
|
|
intel_init_cdclk_hooks(dev_priv);
|
|
|
|
|
|
- if (INTEL_INFO(dev_priv)->gen >= 9) {
|
|
|
+ if (INTEL_GEN(dev_priv) >= 9) {
|
|
|
dev_priv->display.get_pipe_config = haswell_get_pipe_config;
|
|
|
dev_priv->display.get_initial_plane_config =
|
|
|
skylake_get_initial_plane_config;
|