anv/gen8: Set the correct maximum number of GS threads
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Oct 2015 04:51:16 +0000 (21:51 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Oct 2015 04:51:18 +0000 (21:51 -0700)
This equation was pulled from mesa gen8_gs_state.c

src/vulkan/gen8_pipeline.c

index f3f378b181a9bde177a86371a69cdbb521a5af74..6d0edf0ec871356c6426dae6f8b49a0294c64ac0 100644 (file)
@@ -426,7 +426,7 @@ gen8_graphics_pipeline_create(
                      .DispatchGRFStartRegisterForURBData =
                         gs_prog_data->base.base.dispatch_grf_start_reg,
 
-                     .MaximumNumberofThreads = device->info.max_gs_threads,
+                     .MaximumNumberofThreads = device->info.max_gs_threads / 2 - 1,
                      .ControlDataHeaderSize = gs_prog_data->control_data_header_size_hwords,
                      //pipeline->gs_prog_data.dispatch_mode |
                      .StatisticsEnable = true,