diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-19 06:42:05 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-20 04:41:36 -0500 |
commit | 72bfa19c8deb4d1db5ad068c34fd580cb295cbe8 (patch) | |
tree | ff1af345701389b7c6b3c8cffa4c6d704f0ccdab /drivers/gpu/drm/i915/i915_gem.c | |
parent | 3b8d8d91d51c7d15cda51052624169edf7b6dbc6 (diff) |
drm/i915: Allow the application to choose the constant addressing mode
The relative-to-general state default is useless as it means having to
rewrite the streaming kernels for each batch. Relative-to-surface is
more useful, as that stream usually needs to be rewritten for each
batch. And absolute addressing mode, vital if you start streaming
state, is also only available by adjusting the register...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 5a0fbe59dd5b..c79c0b62ef60 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -3735,6 +3735,8 @@ i915_gem_load(struct drm_device *dev) | |||
3735 | } | 3735 | } |
3736 | } | 3736 | } |
3737 | 3737 | ||
3738 | dev_priv->relative_constants_mode = I915_EXEC_CONSTANTS_REL_GENERAL; | ||
3739 | |||
3738 | /* Old X drivers will take 0-2 for front, back, depth buffers */ | 3740 | /* Old X drivers will take 0-2 for front, back, depth buffers */ |
3739 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) | 3741 | if (!drm_core_check_feature(dev, DRIVER_MODESET)) |
3740 | dev_priv->fence_reg_start = 3; | 3742 | dev_priv->fence_reg_start = 3; |