drm/i915/icl: move has_resource_streamer to GEN11_FEATURES
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 19 Jul 2018 17:05:56 +0000 (10:05 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Aug 2018 16:19:51 +0000 (17:19 +0100)
Resource streamer has been removed on GEN11 so move it to the FEATURES
macro.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180719170557.10729-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_pci.c

index 3f0c612d42e786d44cff5c86b59bb1da27c0fea9..1932bc227942654cb02cda3c66605e70e2c30a00 100644 (file)
@@ -2223,7 +2223,7 @@ i915_gem_do_execbuffer(struct drm_device *dev,
 
        if (args->flags & I915_EXEC_RESOURCE_STREAMER) {
                if (!HAS_RESOURCE_STREAMER(eb.i915)) {
-                       DRM_DEBUG("RS is only allowed for Haswell, Gen8 and above\n");
+                       DRM_DEBUG("RS is only allowed for Haswell and Gen8 - Gen10\n");
                        return -EINVAL;
                }
                if (eb.engine->id != RCS) {
index adf80563d0a1d7a79020220fcd42f359c177e862..8a9a9009db623e840c08809890f82409b006cbb4 100644 (file)
@@ -604,13 +604,13 @@ static const struct intel_device_info intel_cannonlake_info = {
        GEN(11), \
        .ddb_size = 2048, \
        .has_csr = 0, \
+       .has_resource_streamer = 0, \
        .has_logical_ring_elsq = 1
 
 static const struct intel_device_info intel_icelake_11_info = {
        GEN11_FEATURES,
        PLATFORM(INTEL_ICELAKE),
        .is_alpha_support = 1,
-       .has_resource_streamer = 0,
        .ring_mask = RENDER_RING | BLT_RING | VEBOX_RING | BSD_RING | BSD3_RING,
 };