Module: Mesa Branch: master Commit: 7339915a4bfb563c5986d139e83aa7664f346e89 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7339915a4bfb563c5986d139e83aa7664f346e89
Author: Carl-Philip Hänsch <[email protected]> Date: Sat Mar 12 19:25:11 2011 +0100 r600g: Fix VS sampler view offsets for r600/r700. 077c448d184799e0d9ec962013ec784c6a5c1807 missed this. Signed-off-by: Henri Verbeet <[email protected]> --- src/gallium/drivers/r600/r600_state.c | 3 ++- 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 2f7263c..200e8e4 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); } } } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
