mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-08 02:20:37 +02:00
modesetting: Don't try to use modifiers when allocating the root pixmap
We want the root pixmap to use conservative tiling modifiers in order to make sure modeset/etc can never fail due to hardware watermark restictions/etc. Currenlty this is all dead code anyway because we aren't actually parsing the IN_FORMATS blob (missing universal plane client cap). But we want to start parsing that, so let's first make sure we don't get any behavioural changes from doing so. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
a80aff283b
commit
6cb97fbb7c
1 changed files with 0 additions and 20 deletions
|
|
@ -1111,10 +1111,6 @@ drmmode_create_bo(drmmode_ptr drmmode, drmmode_bo *bo,
|
|||
|
||||
#ifdef GLAMOR_HAS_GBM
|
||||
if (drmmode->glamor) {
|
||||
#ifdef GBM_BO_WITH_MODIFIERS
|
||||
uint32_t num_modifiers;
|
||||
uint64_t *modifiers = NULL;
|
||||
#endif
|
||||
uint32_t format;
|
||||
|
||||
switch (drmmode->scrn->depth) {
|
||||
|
|
@ -1132,22 +1128,6 @@ drmmode_create_bo(drmmode_ptr drmmode, drmmode_bo *bo,
|
|||
break;
|
||||
}
|
||||
|
||||
#ifdef GBM_BO_WITH_MODIFIERS
|
||||
num_modifiers = get_modifiers_set(drmmode->scrn, format, &modifiers,
|
||||
FALSE, TRUE);
|
||||
if (num_modifiers > 0 &&
|
||||
!(num_modifiers == 1 && modifiers[0] == DRM_FORMAT_MOD_INVALID)) {
|
||||
bo->gbm = gbm_bo_create_with_modifiers(drmmode->gbm, width, height,
|
||||
format, modifiers,
|
||||
num_modifiers);
|
||||
free(modifiers);
|
||||
if (bo->gbm) {
|
||||
bo->used_modifiers = TRUE;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
bo->gbm = gbm_bo_create(drmmode->gbm, width, height, format,
|
||||
GBM_BO_USE_RENDERING | GBM_BO_USE_SCANOUT);
|
||||
bo->used_modifiers = FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue