r600g: fix typo in vertex sampling on r600
authorDave Airlie <airlied@redhat.com>
Mon, 11 Oct 2010 23:41:02 +0000 (09:41 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 11 Oct 2010 23:45:22 +0000 (09:45 +1000)
fixes https://bugs.freedesktop.org/show_bug.cgi?id=30771

Reported-by: Kevin DeKorte
src/gallium/drivers/r600/r600_state.c

index a2a76cdeb7577b9db050c0f34ffc2241c7f891cf..70461d24ea2badb8a62dd9f1b7816279ed82a3ad 100644 (file)
@@ -688,7 +688,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_ps_resource(&rctx->ctx, &resource[i]->state, i + PIPE_MAX_ATTRIBS);
+                       r600_context_pipe_state_set_vs_resource(&rctx->ctx, &resource[i]->state, i + PIPE_MAX_ATTRIBS);
                }
        }
 }