drm/i915: add render state initialization
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 14 May 2014 14:02:16 +0000 (17:02 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 May 2014 17:16:13 +0000 (19:16 +0200)
commit9d0a6fa6c5e618bd978d625a215dc4a240ba3b3c
tree865a477b6df61c1c79e5154c0c91bfff189e59f7
parent8b1bc9b4f189a9c483f73907f409b66b10fb926c
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>
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_gem_render_state.c [new file with mode: 0644]
drivers/gpu/drm/i915/intel_renderstate.h [new file with mode: 0644]
drivers/gpu/drm/i915/intel_renderstate_gen6.c [new file with mode: 0644]
drivers/gpu/drm/i915/intel_renderstate_gen7.c [new file with mode: 0644]
drivers/gpu/drm/i915/intel_renderstate_gen8.c [new file with mode: 0644]