projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c8a0a
)
intel: Init num_fences to clean up valgrind warning.
author
Eric Anholt
<eric@anholt.net>
Thu, 2 Jul 2009 00:08:16 +0000
(17:08 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 2 Jul 2009 21:07:09 +0000
(14:07 -0700)
Valgrind doesn't know that a successful getparam sets the target of the
pointer, so just set the value beforehand.
src/mesa/drivers/dri/intel/intel_screen.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_screen.c
b/src/mesa/drivers/dri/intel/intel_screen.c
index 5b3fa9ead323b78f014242918b3806c5e4493e67..8b3761c6bf294d2ade1eaddb460f5c7a70295e13 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_screen.c
+++ b/
src/mesa/drivers/dri/intel/intel_screen.c
@@
-598,7
+598,7
@@
intel_init_bufmgr(intelScreenPrivate *intelScreen)
GLboolean gem_supported;
struct drm_i915_getparam gp;
__DRIscreenPrivate *spriv = intelScreen->driScrnPriv;
- int num_fences;
+ int num_fences
= 0
;
intelScreen->no_hw = getenv("INTEL_NO_HW") != NULL;