summaryrefslogtreecommitdiff
path: root/helpers.h
diff options
context:
space:
mode:
authorKristian H. Kristensen <hoegsberg@chromium.org>2017-10-03 13:53:19 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-26 13:45:03 -0700
commit6061eab81238fddb26e09fe7a1a2f11d12b7904f (patch)
treeda875d2eaaf769efdc6a5b0712d9096e4c517123 /helpers.h
parentbc8c5930f7db53ef0faa6c264c5da805fab2f17a (diff)
minigbm/i915: Implement bo_create_with_modifiers
This implements the bo_create_with_modifiers driver functions, which enables the gbm_bo_create_with_modifiers() entry point. This will allow ozone to allocate with the modifiers it queries from KMS. BUG=chromium:763760 TEST=Allocates Y-tiled scanout on SKL+ Change-Id: Id770e571a51aef4d753b30e12cd67d935c5228b7 Reviewed-on: https://chromium-review.googlesource.com/729279 Commit-Ready: Kristian H. Kristensen <hoegsberg@chromium.org> Tested-by: Kristian H. Kristensen <hoegsberg@chromium.org> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Diffstat (limited to 'helpers.h')
-rw-r--r--helpers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/helpers.h b/helpers.h
index 766b7d1..0e3fd14 100644
--- a/helpers.h
+++ b/helpers.h
@@ -33,4 +33,7 @@ void drv_modify_combination(struct driver *drv, uint32_t format, struct format_m
uint64_t usage);
struct kms_item *drv_query_kms(struct driver *drv, uint32_t *num_items);
int drv_modify_linear_combinations(struct driver *drv);
+uint64_t drv_pick_modifier(const uint64_t *modifiers, uint32_t count,
+ const uint64_t *modifier_order, uint32_t order_count);
+
#endif