From: Rob Clark <rob.clark@linaro.org>
To: dri-devel@lists.freedesktop.org
Cc: patches@linaro.org, daniel.vetter@ffwll.ch, Rob Clark <rob@ti.com>
Subject: [RFC 03/11] drm: add DRM_MODE_PROP_DYNAMIC property flag
Date: Fri, 12 Oct 2012 19:49:04 -0500 [thread overview]
Message-ID: <1350089352-18162-4-git-send-email-rob.clark@linaro.org> (raw)
In-Reply-To: <1350089352-18162-1-git-send-email-rob.clark@linaro.org>
From: Rob Clark <rob@ti.com>
This indicates to userspace that the property is something that can
be set dynamically without requiring a "test" step to check if the
hw is capable. This allows a userspace compositor, such as weston,
to avoid an extra ioctl to check whether it needs to fall-back to
GPU to composite some surface prior to submission of GPU render
commands.
---
include/drm/drm_mode.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h
index dff792f..e03ece6 100644
--- a/include/drm/drm_mode.h
+++ b/include/drm/drm_mode.h
@@ -232,6 +232,15 @@ struct drm_mode_get_connector {
#define DRM_MODE_PROP_BLOB (1<<4)
#define DRM_MODE_PROP_BITMASK (1<<5) /* bitmask of enumerated types */
#define DRM_MODE_PROP_OBJECT (1<<6) /* drm mode object */
+/* Properties that are not dynamic cannot safely be changed without a
+ * atomic-modeset / atomic-pageflip test step. But if userspace is
+ * only changing dynamic properties, it is guaranteed that the change
+ * will not exceed hw limits, so no test step is required.
+ *
+ * Note that fb_id properties are a bit ambiguous.. they of course can
+ * be changed dynamically, assuming the pixel format does not change.
+ */
+#define DRM_MODE_PROP_DYNAMIC (1<<24)
struct drm_mode_property_enum {
__u64 value;
--
1.7.9.5
next prev parent reply other threads:[~2012-10-13 0:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-13 0:49 [RFC 00/11] atomic pageflip v3 Rob Clark
2012-10-13 0:49 ` [RFC 01/11] drm: add atomic fxns Rob Clark
2012-10-13 0:49 ` [RFC 02/11] drm: add object property type Rob Clark
2012-10-13 0:49 ` Rob Clark [this message]
2012-10-13 0:49 ` [RFC 04/11] drm: add DRM_MODE_PROP_SIGNED property flag Rob Clark
2012-10-13 0:49 ` [RFC 05/11] drm: split property values out Rob Clark
2012-10-13 0:49 ` [RFC 06/11] drm: convert plane to properties Rob Clark
2012-10-13 0:49 ` [RFC 07/11] drm: add drm_plane_state Rob Clark
2012-10-13 0:49 ` [RFC 08/11] drm: convert page_flip to properties Rob Clark
2012-10-13 0:49 ` [RFC 09/11] drm: add drm_crtc_state Rob Clark
2012-10-13 0:49 ` [RFC 10/11] drm: atomic pageflip Rob Clark
2012-10-13 0:49 ` [RFC 11/11] drm/omap: update for atomic age Rob Clark
2012-10-13 0:58 ` [RFC 00/11] atomic pageflip v3 Rob Clark
-- strict thread matches above, loose matches on Subject: below --
2012-09-13 3:49 [RFC 00/11] atomic pageflip (v2) Rob Clark
2012-09-13 3:49 ` [RFC 03/11] drm: add DRM_MODE_PROP_DYNAMIC property flag Rob Clark
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1350089352-18162-4-git-send-email-rob.clark@linaro.org \
--to=rob.clark@linaro.org \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=patches@linaro.org \
--cc=rob@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox