From 7339915a4bfb563c5986d139e83aa7664f346e89 Mon Sep 17 00:00:00 2001 From: Carl-Philip Hänsch Date: Sat, 12 Mar 2011 19:25:11 +0100 Subject: r600g: Fix VS sampler view offsets for r600/r700. 077c448d184799e0d9ec962013ec784c6a5c1807 missed this. Signed-off-by: Henri Verbeet --- src/gallium/drivers/r600/r600_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 2f7263cdcff..200e8e45fc8 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -501,7 +501,8 @@ static void r600_set_vs_sampler_view(struct pipe_context *ctx, unsigned count, for (int i = 0; i < count; i++) { if (resource[i]) { - r600_context_pipe_state_set_vs_resource(&rctx->ctx, &resource[i]->state, i); + r600_context_pipe_state_set_vs_resource(&rctx->ctx, &resource[i]->state, + i + R600_MAX_CONST_BUFFERS); } } } -- cgit v1.2.3