From: Jason Ekstrand Date: Mon, 14 Nov 2016 16:42:22 +0000 (-0800) Subject: anv/pipeline/gen8: Set 3DSTATE_GS::InstanceControl X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3783f1249c46c0707c40fac3705b2a698cd0380;p=mesa.git anv/pipeline/gen8: Set 3DSTATE_GS::InstanceControl Reviewed-by: Timothy Arceri Reviewed-by: Kristian H. Kristensen --- 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;