summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-08-19 18:33:02 +0200
committerMarek Olšák <[email protected]>2017-08-21 23:06:42 +0200
commitea1b97714d9bd443c178ee43b19bf10f9a17d3d5 (patch)
tree7967c401724295a1e508cb67b0a68258326bc701 /src/gallium/drivers/r600/r600_shader.c
parenta98b1a8922fa6990d0ab677770fc8ab6c9286a4b (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_shader.c')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 2eb8187341c..8c5e6ff72d6 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -3031,7 +3031,7 @@ static int r600_shader_from_tgsi(struct r600_context *rctx,
ctx.file_offset[i] = 0;
}
- if (ctx.type == PIPE_SHADER_VERTEX) {
+ if (ctx.type == PIPE_SHADER_VERTEX && ctx.info.num_inputs) {
ctx.file_offset[TGSI_FILE_INPUT] = 1;
r600_bytecode_add_cfinst(ctx.bc, CF_OP_CALL_FS);
}