OSDN Git Service

intel/gen10: Add missed gen10 stuff
authorBen Widawsky <ben@bwidawsk.net>
Wed, 24 Aug 2016 21:51:43 +0000 (14:51 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 30 Jun 2017 15:30:43 +0000 (08:30 -0700)
This got lost on rebase, I believe

Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
intel/intel_bufmgr_gem.c
intel/intel_decode.c

index 45a26da..71f140f 100644 (file)
@@ -3662,6 +3662,8 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size)
                bufmgr_gem->gen = 8;
        else if (IS_GEN9(bufmgr_gem->pci_device))
                bufmgr_gem->gen = 9;
+       else if (IS_GEN10(bufmgr_gem->pci_device))
+               bufmgr_gem->gen = 10;
        else {
                free(bufmgr_gem);
                bufmgr_gem = NULL;
index 2721ffd..3a81500 100644 (file)
@@ -3827,7 +3827,9 @@ drm_intel_decode_context_alloc(uint32_t devid)
        ctx->devid = devid;
        ctx->out = stdout;
 
-       if (IS_GEN9(devid))
+       if (IS_GEN10(devid))
+               ctx->gen = 10;
+       else if (IS_GEN9(devid))
                ctx->gen = 9;
        else if (IS_GEN8(devid))
                ctx->gen = 8;