anv: Support MEDIA_VFE_STATE for gen7
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 30 Jan 2016 08:31:58 +0000 (00:31 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 30 Jan 2016 17:08:34 +0000 (09:08 -0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/vulkan/genX_pipeline.c

index 14a608b9fca6ecc538c70744e3fb9f4c19a19294..e78cfb55ef928b12944d80c4ed15d45b58260440 100644 (file)
@@ -104,15 +104,16 @@ genX(compute_pipeline_create)(
 #if ANV_GEN > 7
                   .ScratchSpaceBasePointerHigh = 0,
                   .StackSize = 0,
+#else
+                  .GPGPUMode = true,
 #endif
-
                   .MaximumNumberofThreads = device->info.max_cs_threads - 1,
-                  .NumberofURBEntries = 2,
+                  .NumberofURBEntries = ANV_GEN <= 7 ? 0 : 2,
                   .ResetGatewayTimer = true,
 #if ANV_GEN == 8
                   .BypassGatewayControl = true,
 #endif
-                  .URBEntryAllocationSize = 2,
+                  .URBEntryAllocationSize = ANV_GEN <= 7 ? 0 : 2,
                   .CURBEAllocationSize = 0);
 
    struct brw_cs_prog_data *prog_data = &pipeline->cs_prog_data;