Mesa (i965g-restart): i965g: fix compiler warning

Keith Whitwell keithw at kemper.freedesktop.org
Thu Nov 5 08:29:51 UTC 2009


Module: Mesa
Branch: i965g-restart
Commit: 2475e5db679a70c4a3868dc07037d009865a6694
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2475e5db679a70c4a3868dc07037d009865a6694

Author: Keith Whitwell <keithw at vmware.com>
Date:   Thu Nov  5 08:00:33 2009 +0000

i965g: fix compiler warning

---

 src/gallium/drivers/i965/brw_misc_state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/i965/brw_misc_state.c b/src/gallium/drivers/i965/brw_misc_state.c
index b562eb7..8e35f9a 100644
--- a/src/gallium/drivers/i965/brw_misc_state.c
+++ b/src/gallium/drivers/i965/brw_misc_state.c
@@ -343,7 +343,7 @@ const struct brw_tracked_state brw_polygon_stipple = {
 
 static int upload_line_stipple(struct brw_context *brw)
 {
-   struct brw_line_stipple *bls = &brw->curr.rast->bls;
+   const struct brw_line_stipple *bls = &brw->curr.rast->bls;
    BRW_CACHED_BATCH_STRUCT(brw, bls);
    return 0;
 }




More information about the mesa-commit mailing list