[Intel-gfx] [PATCH v2 0/2] render state initialization (bdw rc6)

Mika Kuoppala mika.kuoppala at linux.intel.com
Tue May 6 15:26:04 CEST 2014


Hi,

V2 series of the render state initialization patches.

I decided not to pursue the copying of the context object as the ctx
is quite big, atleast on bdw. As discussed in irc, the copying
could be done with blitter, on context creation time. But even then we would 
need to wait for it to complete. Pushing 1kbytes of commands doesn't
sound so bad when the alternative is to copy 18 pages.

The state generators can be found here but they are not needed for testing.
http://cgit.freedesktop.org/~miku/intel-gpu-tools/log/?h=null_state_gen

Here is the branch for testing:
http://cgit.freedesktop.org/~miku/drm-intel/log/?h=render_state

Thank you to all who provided feedback.
-Mika

Mika Kuoppala (2):
  drm/i915: add render state initialization
  drm/i915: add null render states for gen6, gen7 and gen8

 drivers/gpu/drm/i915/Makefile                 |    6 +
 drivers/gpu/drm/i915/i915_drv.h               |    2 +
 drivers/gpu/drm/i915/i915_gem_context.c       |    6 +
 drivers/gpu/drm/i915/i915_gem_render_state.c  |  186 ++++++++++
 drivers/gpu/drm/i915/intel_renderstate.h      |   48 +++
 drivers/gpu/drm/i915/intel_renderstate_gen6.c |  289 +++++++++++++++
 drivers/gpu/drm/i915/intel_renderstate_gen7.c |  253 +++++++++++++
 drivers/gpu/drm/i915/intel_renderstate_gen8.c |  479 +++++++++++++++++++++++++
 8 files changed, 1269 insertions(+)
 create mode 100644 drivers/gpu/drm/i915/i915_gem_render_state.c
 create mode 100644 drivers/gpu/drm/i915/intel_renderstate.h
 create mode 100644 drivers/gpu/drm/i915/intel_renderstate_gen6.c
 create mode 100644 drivers/gpu/drm/i915/intel_renderstate_gen7.c
 create mode 100644 drivers/gpu/drm/i915/intel_renderstate_gen8.c

-- 
1.7.9.5




More information about the Intel-gfx mailing list