freedreno/a2xx: fix compiler warning
authorRob Clark <robclark@freedesktop.org>
Sun, 11 May 2014 12:57:38 +0000 (08:57 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 11 May 2014 12:58:20 +0000 (08:58 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a2xx/fd2_emit.c

index d1a586c8c9bd168d805aa3c5cfbe97d7426c164e..a533c2981151197ffee1aea8383b890aa09ee6a8 100644 (file)
@@ -125,7 +125,7 @@ emit_texture(struct fd_ringbuffer *ring, struct fd_context *ctx,
 {
        unsigned const_idx = fd2_get_const_idx(ctx, tex, samp_id);
        static const struct fd2_sampler_stateobj dummy_sampler = {};
-       struct fd2_sampler_stateobj *sampler;
+       const struct fd2_sampler_stateobj *sampler;
        struct fd2_pipe_sampler_view *view;
 
        if (emitted & (1 << const_idx))