anv: Emit URB setup earlier
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 16 Jan 2020 23:05:10 +0000 (17:05 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 31 Jan 2020 00:46:24 +0000 (18:46 -0600)
Cc: "20.0" mesa-stable@lists.freedesktop.org
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3454>

src/intel/vulkan/genX_pipeline.c

index 92bb04d07d3fa30534df76f6200e75ab7a19fed1..b23be6b11528fcac430e73236ebcf406298b7a3f 100644 (file)
@@ -2144,6 +2144,8 @@ genX(graphics_pipeline_create)(
       vk_find_struct_const(pCreateInfo->pRasterizationState->pNext,
                            PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT);
 
+   emit_urb_setup(pipeline);
+
    assert(pCreateInfo->pVertexInputState);
    emit_vertex_input(pipeline, pCreateInfo->pVertexInputState);
    assert(pCreateInfo->pRasterizationState);
@@ -2155,8 +2157,6 @@ genX(graphics_pipeline_create)(
    emit_cb_state(pipeline, cb_info, ms_info);
    compute_kill_pixel(pipeline, ms_info, subpass);
 
-   emit_urb_setup(pipeline);
-
    emit_3dstate_clip(pipeline,
                      pCreateInfo->pInputAssemblyState,
                      vp_info,