summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-05-26 19:07:35 +0200
committerMarek Olšák <[email protected]>2015-06-05 19:44:32 +0200
commit6aff87bb01d2bd583ac629d02ebf56ecbf86ec2c (patch)
tree1694e0edb41bbc9eb98eb92008fae726a0debcc2 /src/gallium/drivers/r600
parent6bf3729a3fa32a779e9593ffdf1c14e7a4f6dbad (diff)
r600g: fix a coverity defect in streamout code
Reported by Ilia Mirkin.
Diffstat (limited to 'src/gallium/drivers/r600')
-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 87b6e6e06ec..2e83143b29d 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -1337,7 +1337,7 @@ static int emit_streamout(struct r600_shader_ctx *ctx, struct pipe_stream_output
int i, j, r;
/* Sanity checking. */
- if (so->num_outputs > PIPE_MAX_SHADER_OUTPUTS) {
+ if (so->num_outputs > PIPE_MAX_SO_OUTPUTS) {
R600_ERR("Too many stream outputs: %d\n", so->num_outputs);
r = -EINVAL;
goto out_err;