summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorCarl-Philip Hänsch <[email protected]>2011-03-12 19:25:11 +0100
committerHenri Verbeet <[email protected]>2011-03-12 19:33:16 +0100
commit7339915a4bfb563c5986d139e83aa7664f346e89 (patch)
treedd33b2f4e30b806723f5c7d9bc278f57777fb3a5 /src/gallium/drivers/r600
parent656c314573c2b63ef92fc035dd811b9d6dc82c1c (diff)
r600g: Fix VS sampler view offsets for r600/r700.
077c448d184799e0d9ec962013ec784c6a5c1807 missed this. Signed-off-by: Henri Verbeet <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r--src/gallium/drivers/r600/r600_state.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}
}