diff options
author | Dave Airlie <[email protected]> | 2015-12-11 09:36:36 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-12-11 09:37:20 +1000 |
commit | 5362e53a068d5718b303dfad88bb623df22662e1 (patch) | |
tree | 0520d8c6177e340f8053912d6e81c781b8713fee /src/gallium/drivers/r600/r600_shader.c | |
parent | 78b81be627734ea7fa50ea246c07b0d4a3a1638a (diff) |
r600: add missing return value check.
Pointed out by coverity scan.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 3c65610a788..c8496843413 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -1745,6 +1745,8 @@ static int do_lds_fetch_values(struct r600_shader_ctx *ctx, unsigned temp_reg, temp_reg, i, temp_reg, 0, V_SQ_ALU_SRC_LITERAL, 4 * i); + if (r) + return r; } for (i = 0; i < 4; i++) { /* emit an LDS_READ_RET */ |