summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_lrc.c
diff options
context:
space:
mode:
authorChris Wilson2017-11-10 15:26:34 +0100
committerChris Wilson2017-11-10 18:23:22 +0100
commit7c2fa7faf18f80f9fbbe7fcad8072604304db5dd (patch)
tree6a4a2ccbbbe05548d52582ba8ddee8496fb391bc /drivers/gpu/drm/i915/intel_lrc.c
parentdrm/i915: Record the default hw state after reset upon load (diff)
downloadkernel-qcow2-linux-7c2fa7faf18f80f9fbbe7fcad8072604304db5dd.tar.gz
kernel-qcow2-linux-7c2fa7faf18f80f9fbbe7fcad8072604304db5dd.tar.xz
kernel-qcow2-linux-7c2fa7faf18f80f9fbbe7fcad8072604304db5dd.zip
drm/i915: Stop caching the "golden" renderstate
As we now record the default HW state and so only emit the "golden" renderstate once to prepare the HW, there is no advantage in keeping the renderstate batch around as it will never be used again. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171110142634.10551-8-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lrc.c')
-rw-r--r--drivers/gpu/drm/i915/intel_lrc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 0c93f27f36ee..58d050a9a866 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -136,6 +136,7 @@
#include <drm/drmP.h>
#include <drm/i915_drm.h>
#include "i915_drv.h"
+#include "i915_gem_render_state.h"
#include "intel_mocs.h"
#define RING_EXECLIST_QFULL (1 << 0x2)