From f3783f1249c46c0707c40fac3705b2a698cd0380 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 14 Nov 2016 08:42:22 -0800 Subject: [PATCH] anv/pipeline/gen8: Set 3DSTATE_GS::InstanceControl Reviewed-by: Timothy Arceri Reviewed-by: Kristian H. Kristensen --- src/intel/vulkan/gen8_pipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/gen8_pipeline.c b/src/intel/vulkan/gen8_pipeline.c index 1320a1377af..484fad976d3 100644 --- a/src/intel/vulkan/gen8_pipeline.c +++ b/src/intel/vulkan/gen8_pipeline.c @@ -147,6 +147,7 @@ genX(graphics_pipeline_create)( gs.MaximumNumberofThreads = devinfo->max_gs_threads / 2 - 1; gs.ControlDataHeaderSize = gs_prog_data->control_data_header_size_hwords; + gs.InstanceControl = MAX2(gs_prog_data->invocations, 1) - 1; gs.DispatchMode = gs_prog_data->base.dispatch_mode; gs.StatisticsEnable = true; gs.IncludePrimitiveID = gs_prog_data->include_primitive_id; -- 2.30.2