diff options
author | Marek Olšák <[email protected]> | 2017-08-19 18:33:02 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-08-21 23:06:42 +0200 |
commit | ea1b97714d9bd443c178ee43b19bf10f9a17d3d5 (patch) | |
tree | 7967c401724295a1e508cb67b0a68258326bc701 /src/gallium/drivers/r600/r600_state.c | |
parent | a98b1a8922fa6990d0ab677770fc8ab6c9286a4b (diff) |
r600g: don't set up and don't call the fetch shader if there are no VS inputs
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index dca8fe5e5bc..300dbe8040c 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -1898,6 +1898,9 @@ static void r600_emit_vertex_fetch_shader(struct r600_context *rctx, struct r600 struct r600_cso_state *state = (struct r600_cso_state*)a; struct r600_fetch_shader *shader = (struct r600_fetch_shader*)state->cso; + if (!shader) + return; + radeon_set_context_reg(cs, R_028894_SQ_PGM_START_FS, shader->offset >> 8); radeon_emit(cs, PKT3(PKT3_NOP, 0, 0)); radeon_emit(cs, radeon_add_to_buffer_list(&rctx->b, &rctx->b.gfx, shader->buffer, |