gen8/pipeline: Pull gs_vertex_count from prog_data

This commit is contained in:
Jason Ekstrand 2016-02-11 15:11:38 -08:00
parent ff8895ba56
commit da4a6bbbea
3 changed files with 1 additions and 3 deletions

View file

@ -635,7 +635,6 @@ anv_pipeline_compile_gs(struct anv_pipeline *pipeline,
/* TODO: SIMD8 GS */
pipeline->gs_kernel =
anv_pipeline_cache_upload_kernel(cache, shader_code, code_size);
pipeline->gs_vertex_count = nir->info.gs.vertices_in;
ralloc_free(mem_ctx);

View file

@ -1379,7 +1379,6 @@ struct anv_pipeline {
uint32_t ps_grf_start0;
uint32_t ps_grf_start2;
uint32_t gs_kernel;
uint32_t gs_vertex_count;
uint32_t cs_simd;
uint32_t vb_used;

View file

@ -322,7 +322,7 @@ genX(graphics_pipeline_create)(
.VectorMaskEnable = false,
.SamplerCount = 0,
.BindingTableEntryCount = 0,
.ExpectedVertexCount = pipeline->gs_vertex_count,
.ExpectedVertexCount = gs_prog_data->vertices_in,
.ScratchSpaceBasePointer = pipeline->scratch_start[MESA_SHADER_GEOMETRY],
.PerThreadScratchSpace = scratch_space(&gs_prog_data->base.base),