* [PATCH] add HAS_BSD check to i915_getparam
@ 2010-05-31 5:58 Zou Nan hai
2010-06-01 18:22 ` Eric Anholt
0 siblings, 1 reply; 2+ messages in thread
From: Zou Nan hai @ 2010-05-31 5:58 UTC (permalink / raw)
To: Anholt Eric, intel-gfx
add HAS_BSD check to i915_getparam for user space program
to query if BSD ring buffer is supported.
Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
---
drivers/gpu/drm/i915/i915_dma.c | 3 +++
include/drm/i915_drm.h | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 6577798..84ce956 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -744,6 +744,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
/* depends on GEM */
value = dev_priv->has_gem;
break;
+ case I915_PARAM_HAS_BSD:
+ value = HAS_BSD(dev);
+ break;
default:
DRM_DEBUG_DRIVER("Unknown parameter %d\n",
param->param);
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index e916870..7f0028e 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -275,6 +275,7 @@ typedef struct drm_i915_irq_wait {
#define I915_PARAM_HAS_OVERLAY 7
#define I915_PARAM_HAS_PAGEFLIPPING 8
#define I915_PARAM_HAS_EXECBUF2 9
+#define I915_PARAM_HAS_BSD 10
typedef struct drm_i915_getparam {
int param;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] add HAS_BSD check to i915_getparam
2010-05-31 5:58 [PATCH] add HAS_BSD check to i915_getparam Zou Nan hai
@ 2010-06-01 18:22 ` Eric Anholt
0 siblings, 0 replies; 2+ messages in thread
From: Eric Anholt @ 2010-06-01 18:22 UTC (permalink / raw)
To: Zou Nan hai, intel-gfx
[-- Attachment #1.1: Type: text/plain, Size: 263 bytes --]
On Mon, 31 May 2010 13:58:47 +0800, Zou Nan hai <nanhai.zou@intel.com> wrote:
> add HAS_BSD check to i915_getparam for user space program
> to query if BSD ring buffer is supported.
>
> Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
Applied. Thanks!
[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-01 18:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-31 5:58 [PATCH] add HAS_BSD check to i915_getparam Zou Nan hai
2010-06-01 18:22 ` Eric Anholt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.