summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-01-29 04:08:43 +0000
committerDave Airlie <airlied@redhat.com>2014-02-04 09:47:44 +1000
commit3b0de172e4c1e0d2b82ea3f9fbeb8056d5a36598 (patch)
tree1d6a6eff07faae8b9f01bf59f319fd9ece395988
parent1108a2264cd79750f970f23114033b1e51b4a362 (diff)
r600g: don't fail if we can't map VS->GS ring entries
This can happen in normal operation, so don't report an error on it, just continue. Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/gallium/drivers/r600/r600_shader.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 56067246874..73b290979fb 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -1299,10 +1299,9 @@ static int emit_gs_ring_writes(struct r600_shader_ctx *ctx)
if (in->name == out->name && in->sid == out->sid)
ring_offset = in->ring_offset;
}
- if (ring_offset == -1) {
- R600_ERR("error mapping VS->GS outputs\n");
- return -1;
- }
+
+ if (ring_offset == -1)
+ continue;
} else
ring_offset = i * 16;