Subversion Repositories Kolibri OS

Rev

Rev 4280 | Rev 4539 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4280 Rev 4371
Line 1283... Line 1283...
1283
		pipe_config->pipe_bpp = 36;
1283
		pipe_config->pipe_bpp = 36;
1284
		break;
1284
		break;
1285
	default:
1285
	default:
1286
		break;
1286
		break;
1287
	}
1287
	}
-
 
1288
 
-
 
1289
	if (encoder->type == INTEL_OUTPUT_EDP && dev_priv->vbt.edp_bpp &&
-
 
1290
	    pipe_config->pipe_bpp > dev_priv->vbt.edp_bpp) {
-
 
1291
		/*
-
 
1292
		 * This is a big fat ugly hack.
-
 
1293
		 *
-
 
1294
		 * Some machines in UEFI boot mode provide us a VBT that has 18
-
 
1295
		 * bpp and 1.62 GHz link bandwidth for eDP, which for reasons
-
 
1296
		 * unknown we fail to light up. Yet the same BIOS boots up with
-
 
1297
		 * 24 bpp and 2.7 GHz link. Use the same bpp as the BIOS uses as
-
 
1298
		 * max, not what it tells us to use.
-
 
1299
		 *
-
 
1300
		 * Note: This will still be broken if the eDP panel is not lit
-
 
1301
		 * up by the BIOS, and thus we can't get the mode at module
-
 
1302
		 * load.
-
 
1303
		 */
-
 
1304
		DRM_DEBUG_KMS("pipe has %d bpp for eDP panel, overriding BIOS-provided max %d bpp\n",
-
 
1305
			      pipe_config->pipe_bpp, dev_priv->vbt.edp_bpp);
-
 
1306
		dev_priv->vbt.edp_bpp = pipe_config->pipe_bpp;
-
 
1307
	}
1288
}
1308
}
Line 1289... Line 1309...
1289
 
1309
 
1290
static void intel_ddi_destroy(struct drm_encoder *encoder)
1310
static void intel_ddi_destroy(struct drm_encoder *encoder)
1291
{
1311
{