intel/aubinator: Fix the kernel start pointer for 3DSTATE_HS
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 18 Nov 2016 19:33:20 +0000 (11:33 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Nov 2016 00:45:09 +0000 (16:45 -0800)
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/intel/tools/aubinator.c

index 0da01f4167cdf0c5e3befa96303ceb98b0ee299e..f5e51676a34eb85126a13b0eaf99255355eaefd7 100644 (file)
@@ -442,9 +442,9 @@ handle_3dstate_hs(struct gen_spec *spec, uint32_t *p)
    int hs_enable;
 
    if (gen_spec_get_gen(spec) >= gen_make_gen(8, 0)) {
-      start = get_qword(&p[4]);
+      start = get_qword(&p[3]);
    } else {
-      start = p[4];
+      start = p[3];
    }
 
    hs_enable = p[2] & 0x80000000;