Mesa (master): freedreno/a2xx: fix compiler warning

Rob Clark robclark at kemper.freedesktop.org
Sun May 11 12:59:43 UTC 2014


Module: Mesa
Branch: master
Commit: 83b4ec03e77645c537d540a12253b3492bad4b59
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=83b4ec03e77645c537d540a12253b3492bad4b59

Author: Rob Clark <robclark at freedesktop.org>
Date:   Sun May 11 08:57:38 2014 -0400

freedreno/a2xx: fix compiler warning

Signed-off-by: Rob Clark <robclark at freedesktop.org>

---

 src/gallium/drivers/freedreno/a2xx/fd2_emit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_emit.c b/src/gallium/drivers/freedreno/a2xx/fd2_emit.c
index d1a586c..a533c29 100644
--- a/src/gallium/drivers/freedreno/a2xx/fd2_emit.c
+++ b/src/gallium/drivers/freedreno/a2xx/fd2_emit.c
@@ -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))




More information about the mesa-commit mailing list