From: Jordan Justen Date: Sat, 30 Jan 2016 08:31:58 +0000 (-0800) Subject: anv: Support MEDIA_VFE_STATE for gen7 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab0d8608d269e9bc872f489eee50bc616bd6e076;p=mesa.git anv: Support MEDIA_VFE_STATE for gen7 Signed-off-by: Jordan Justen --- 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;