r600g: Fix VS sampler view offsets for r600/r700.
authorCarl-Philip Hänsch <s3734770@mail.zih.tu-dresden.de>
Sat, 12 Mar 2011 18:25:11 +0000 (19:25 +0100)
committerHenri Verbeet <hverbeet@gmail.com>
Sat, 12 Mar 2011 18:33:16 +0000 (19:33 +0100)
077c448d184799e0d9ec962013ec784c6a5c1807 missed this.

Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
src/gallium/drivers/r600/r600_state.c

index 2f7263cdcff3464b753de9faa9c4cdb912a67725..200e8e45fc8b77c50e09cb81c13728f7f10a7f6c 100644 (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);
                }
        }
 }