Mesa (master): i965: update comment, use const qualifier
Brian Paul
brianp at kemper.freedesktop.org
Fri Feb 20 21:08:57 UTC 2009
Module: Mesa
Branch: master
Commit: 55d33e1fa7d231a0cdfce9b9650ae9e136e6c63c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=55d33e1fa7d231a0cdfce9b9650ae9e136e6c63c
Author: Brian Paul <brianp at vmware.com>
Date: Fri Feb 20 10:49:30 2009 -0700
i965: update comment, use const qualifier
---
src/mesa/drivers/dri/i965/brw_wm.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index 4501e04..10f38e0 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -183,7 +183,7 @@ static void brw_wm_populate_key( struct brw_context *brw,
{
GLcontext *ctx = &brw->intel.ctx;
/* BRW_NEW_FRAGMENT_PROGRAM */
- struct brw_fragment_program *fp =
+ const struct brw_fragment_program *fp =
(struct brw_fragment_program *)brw->fragment_program;
GLuint lookup = 0;
GLuint line_aa;
@@ -302,10 +302,8 @@ static void brw_wm_populate_key( struct brw_context *brw,
key->drawable_height = brw->intel.driDrawable->h;
}
- /* Extra info:
- */
+ /* The unique fragment program ID */
key->program_string_id = fp->id;
-
}
More information about the mesa-commit
mailing list