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
92 case I915_PARAM_HAS_VEBOX:92 case I915_PARAM_HAS_VEBOX:
93 value = intel_ring_initialized(&dev_priv->ring[VECS]);93 value = intel_ring_initialized(&dev_priv->ring[VECS]);
94 break;94 break;
95 case I915_PARAM_HAS_BSD2:
96 value = intel_ring_initialized(&dev_priv->ring[VCS2]);
97 break;
95 case I915_PARAM_HAS_RELAXED_FENCING:98 case I915_PARAM_HAS_RELAXED_FENCING:
96 value = 1;99 value = 1;
97 break;100 break;
include/uapi/drm/i915_drm.h+1−0
@@ -346,6 +346,7 @@ typedef struct drm_i915_irq_wait { · 345 unmodified lines
346#define I915_PARAM_CMD_PARSER_VERSION 28346#define I915_PARAM_CMD_PARSER_VERSION 28
347#define I915_PARAM_HAS_COHERENT_PHYS_GTT 29347#define I915_PARAM_HAS_COHERENT_PHYS_GTT 29
348#define I915_PARAM_MMAP_VERSION 30348#define I915_PARAM_MMAP_VERSION 30
349#define I915_PARAM_HAS_BSD2 31
349 350
350typedef struct drm_i915_getparam {351typedef struct drm_i915_getparam {
351 int param;352 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