mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
r600g: fix a coverity defect in streamout code
Reported by Ilia Mirkin.
This commit is contained in:
parent
6bf3729a3f
commit
6aff87bb01
1 changed files with 1 additions and 1 deletions
|
|
@ -1337,7 +1337,7 @@ static int emit_streamout(struct r600_shader_ctx *ctx, struct pipe_stream_output
|
||||||
int i, j, r;
|
int i, j, r;
|
||||||
|
|
||||||
/* Sanity checking. */
|
/* 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);
|
R600_ERR("Too many stream outputs: %d\n", so->num_outputs);
|
||||||
r = -EINVAL;
|
r = -EINVAL;
|
||||||
goto out_err;
|
goto out_err;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue