summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_renderstate.h
diff options
context:
space:
mode:
authorOscar Mateo <oscar.mateo@intel.com>2014-08-21 11:40:54 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-09-03 11:04:52 +0200
commit564ddb2fae4da01406a24e5a763e601dc21c23d7 (patch)
tree48b36deb20a0ac13323ca2d6c99235bddac0b0a2 /drivers/gpu/drm/i915/intel_renderstate.h
parentc76bb61a71083b2d90504cc6d0dda2047c5d63ca (diff)
downloadlwn-564ddb2fae4da01406a24e5a763e601dc21c23d7.tar.gz
lwn-564ddb2fae4da01406a24e5a763e601dc21c23d7.zip
drm/i915/bdw: Render state init for Execlists
The batchbuffer that sets the render context state is submitted in a different way, and from different places. We needed to make both the render state preparation and free functions outside accesible, and namespace accordingly. This mess is so that all LR, LRC and Execlists functionality can go together in intel_lrc.c: we can fix all of this later on, once the interfaces are clear. v2: Create a separate ctx->rcs_initialized for the Execlists case, as suggested by Chris Wilson. Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> v3: Setup ring status page in lr_context_deferred_create when the default context is being created. This means that the render state init for the default context is no longer a special case. Execute deferred creation of the default context at the end of logical_ring_init to allow the render state commands to be submitted. Fix style errors reported by checkpatch. Rebased. Signed-off-by: Thomas Daniel <thomas.daniel@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_renderstate.h')
-rw-r--r--drivers/gpu/drm/i915/intel_renderstate.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/intel_renderstate.h b/drivers/gpu/drm/i915/intel_renderstate.h
index fd4f66231d30..6c792d3a9c9c 100644
--- a/drivers/gpu/drm/i915/intel_renderstate.h
+++ b/drivers/gpu/drm/i915/intel_renderstate.h
@@ -24,13 +24,7 @@
#ifndef _INTEL_RENDERSTATE_H
#define _INTEL_RENDERSTATE_H
-#include <linux/types.h>
-
-struct intel_renderstate_rodata {
- const u32 *reloc;
- const u32 *batch;
- const u32 batch_items;
-};
+#include "i915_drv.h"
extern const struct intel_renderstate_rodata gen6_null_state;
extern const struct intel_renderstate_rodata gen7_null_state;