intel/decoder: Handle the BLT ring in gen_group_get_length
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 16 May 2017 22:00:49 +0000 (15:00 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 May 2017 14:58:01 +0000 (07:58 -0700)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/common/gen_decoder.c

index db989595ff913bdce07471e2f521241f73f4ceec..3ea2eaf8dbf3fd7ec263733d146863aecd8f5a9a 100644 (file)
@@ -703,6 +703,10 @@ gen_group_get_length(struct gen_group *group, const uint32_t *p)
       break;
    }
 
+   case 2: /* BLT */ {
+      return field(h, 0, 7) + 2;
+   }
+
    case 3: /* Render */ {
       uint32_t subtype = field(h, 27, 28);
       uint32_t opcode = field(h, 24, 26);