diff options
author | Dave Airlie <airlied@redhat.com> | 2010-09-02 11:16:31 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-09-02 11:17:37 +1000 |
commit | 36192b772eda190c4d78e8a4979c4e3c6377ae61 (patch) | |
tree | 28901c2f04dc64b66ea2d36a319cde86d50aee44 /src/gallium/drivers/r600/r600_state.c | |
parent | 5ad74779cea07cc6a19a52874cdaef8b018e2f1b (diff) |
r600g: fix incorrect state naming in pipe_sampler vs pipe_sampler_view
fixes problems in valgrind with uninitialised values.
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_state.c | 2 |
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 4f00cfb381..888507747b 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -92,7 +92,7 @@ static struct pipe_sampler_view *r600_create_sampler_view(struct pipe_context *c struct r600_context *rctx = r600_context(ctx); struct r600_context_state *rstate; - rstate = r600_context_state(rctx, pipe_sampler_type, state); + rstate = r600_context_state(rctx, pipe_sampler_view_type, state); pipe_reference(NULL, &texture->reference); rstate->state.sampler_view.texture = texture; rstate->state.sampler_view.reference.count = 1; |