diff options
author | Mika Kuoppala <mika.kuoppala@linux.intel.com> | 2014-05-14 17:02:16 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-05-14 19:16:13 +0200 |
commit | 9d0a6fa6c5e618bd978d625a215dc4a240ba3b3c (patch) | |
tree | 865a477b6df61c1c79e5154c0c91bfff189e59f7 /drivers/gpu/drm/i915/intel_renderstate_gen8.c | |
parent | 8b1bc9b4f189a9c483f73907f409b66b10fb926c (diff) | |
download | talos-obmc-linux-9d0a6fa6c5e618bd978d625a215dc4a240ba3b3c.tar.gz talos-obmc-linux-9d0a6fa6c5e618bd978d625a215dc4a240ba3b3c.zip |
drm/i915: add render state initialization
HW guys say that it is not a cool idea to let device
go into rc6 without proper 3d pipeline state.
For each new uninitialized context, generate a
valid null render state to be run on context
creation.
This patch introduces a skeleton with empty states.
v2: - No need to vmap (Chris Wilson)
- use .c files for state (Daniel Vetter)
- no need to flush as i915_add_request does it
- remove parameter for batch alloc size
- don't wait for the init (Ben Widawsky)
v3: - move to cpu/gpu (Chris Wilson)
Tested-by: Kristen Carlson Accardi <kristen@linux.intel.com> (v1)
Tested-by: Oscar Mateo <oscar.mateo@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_renderstate_gen8.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_renderstate_gen8.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_renderstate_gen8.c b/drivers/gpu/drm/i915/intel_renderstate_gen8.c new file mode 100644 index 000000000000..88c373380e43 --- /dev/null +++ b/drivers/gpu/drm/i915/intel_renderstate_gen8.c @@ -0,0 +1,10 @@ +#include "intel_renderstate.h" + +static const u32 gen8_null_state_relocs[] = { +}; + +static const u32 gen8_null_state_batch[] = { + 0x0a << 23, /* MI_BATCH_BUFFER_END */ +}; + +RO_RENDERSTATE(8); |