From ab0d8608d269e9bc872f489eee50bc616bd6e076 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Sat, 30 Jan 2016 00:31:58 -0800 Subject: [PATCH] anv: Support MEDIA_VFE_STATE for gen7 Signed-off-by: Jordan Justen --- src/vulkan/genX_pipeline.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/vulkan/genX_pipeline.c b/src/vulkan/genX_pipeline.c index 14a608b9fca..e78cfb55ef9 100644 --- a/src/vulkan/genX_pipeline.c +++ b/src/vulkan/genX_pipeline.c @@ -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; -- 2.30.2