anv/gen8: Set the correct maximum number of GS threads

This equation was pulled from mesa gen8_gs_state.c
This commit is contained in:
Jason Ekstrand
2015-10-21 21:51:16 -07:00
parent d0e8c78407
commit 82c579e314

View File

@@ -426,7 +426,7 @@ gen8_graphics_pipeline_create(
.DispatchGRFStartRegisterForURBData = .DispatchGRFStartRegisterForURBData =
gs_prog_data->base.base.dispatch_grf_start_reg, 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, .ControlDataHeaderSize = gs_prog_data->control_data_header_size_hwords,
//pipeline->gs_prog_data.dispatch_mode | //pipeline->gs_prog_data.dispatch_mode |
.StatisticsEnable = true, .StatisticsEnable = true,