History

drm/i915: add I915_PARAM_HAS_BSD2 to i915_getparam

This will let userland only try to use the new ring when the appropriate kernel is present v2: change the number to be consistent with upstream (Zhipeng)

Zhipeng Gong committed 11 years ago

Commit 08e16dc1 parent 8d360df2 files · +4 −0Browse files

Unified · Split

2 files
  1. drivers/gpu/drm/i915/i915_dma.c +3 −0
  2. include/uapi/drm/i915_drm.h +1 −0
drivers/gpu/drm/i915/i915_dma.c+3−0
@@ -92,6 +92,9 @@ static int i915_getparam(struct drm_device *dev, void *data, · 91 unmodified lines
9292 case I915_PARAM_HAS_VEBOX:
9393 value = intel_ring_initialized(&dev_priv->ring[VECS]);
9494 break;
95+ case I915_PARAM_HAS_BSD2:
96+ value = intel_ring_initialized(&dev_priv->ring[VCS2]);
97+ break;
9598 case I915_PARAM_HAS_RELAXED_FENCING:
9699 value = 1;
97100 break;
include/uapi/drm/i915_drm.h+1−0
@@ -346,6 +346,7 @@ typedef struct drm_i915_irq_wait { · 345 unmodified lines
346346 #define I915_PARAM_CMD_PARSER_VERSION 28
347347 #define I915_PARAM_HAS_COHERENT_PHYS_GTT 29
348348 #define I915_PARAM_MMAP_VERSION 30
349+#define I915_PARAM_HAS_BSD2 31
349350
350351 typedef struct drm_i915_getparam {
351352 int param;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t