summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600_state.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2010-11-19 15:51:24 -0500
committerAlex Deucher <alexdeucher@gmail.com>2010-11-19 15:51:24 -0500
commit04ffbe1ac6a82ac5cce843afa15ffdfa4ef78103 (patch)
tree676077396f299cfdb8276be14ac6f07b7b74ad6c /src/gallium/drivers/r600/r600_state.c
parent4afd0683854ac1cfbe7118232b5e344c83d4b0c2 (diff)
r600g: use full range of VS resources for vertex samplers
Now that we have fetch shaders, the full range of VS resources can be used for sampling.
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r--src/gallium/drivers/r600/r600_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index 3d876e775e..6fd46ae7e6 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -622,7 +622,7 @@ 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 + PIPE_MAX_ATTRIBS);
+ r600_context_pipe_state_set_vs_resource(&rctx->ctx, &resource[i]->state, i);
}
}
}