Commit 050f7e2d authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen
Browse files

radv: Don't explicitly reference vertex shader for draw_id.

With merged shaders the vertex shader may not exist. This got in
because the offending patch was written before merged shaders were
upstream, but committed after.

Fixes: 75dfab24

 'radv: refactor indirect draws with radv_draw_info'
Reviewed-by: default avatarSamuel Pitoiset <>
parent 20fb15bf
......@@ -2954,7 +2954,7 @@ radv_cs_emit_indirect_draw_packet(struct radv_cmd_buffer *cmd_buffer,
struct radeon_winsys_cs *cs = cmd_buffer->cs;
unsigned di_src_sel = indexed ? V_0287F0_DI_SRC_SEL_DMA
bool draw_id_enable = cmd_buffer->state.pipeline->shaders[MESA_SHADER_VERTEX]->;
bool draw_id_enable = radv_get_vertex_shader(cmd_buffer->state.pipeline)->;
uint32_t base_reg = cmd_buffer->state.pipeline->graphics.vtx_base_sgpr;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment