r600g: Fix VS sampler view offsets for r600/r700.

077c448d18 missed this.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
This commit is contained in:
Carl-Philip Hänsch 2011-03-12 19:25:11 +01:00 committed by Henri Verbeet
parent 656c314573
commit 7339915a4b
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}
}