projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcd5af4
)
i965: Fix Coverity wrong sizeof argument defect.
author
Vinson Lee
<vlee@vmware.com>
Thu, 3 Nov 2011 07:36:27 +0000
(
00:36
-0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 12 Jan 2012 23:19:34 +0000
(15:19 -0800)
NOTE: This is a candidate for stable release branches.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42542
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen7_viewport_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/gen7_viewport_state.c
b/src/mesa/drivers/dri/i965/gen7_viewport_state.c
index 252a35b21fcf3ebf12c46b132723e24cb46be293..d0b89d5fe57120ac0e0097b3175ab54364795b11 100644
(file)
--- a/
src/mesa/drivers/dri/i965/gen7_viewport_state.c
+++ b/
src/mesa/drivers/dri/i965/gen7_viewport_state.c
@@
-38,7
+38,7
@@
gen7_upload_sf_clip_viewport(struct brw_context *brw)
struct gen7_sf_clip_viewport *vp;
vp = brw_state_batch(brw, AUB_TRACE_SF_VP_STATE,
- sizeof(vp), 64, &brw->sf.vp_offset);
+ sizeof(
*
vp), 64, &brw->sf.vp_offset);
/* Also assign to clip.vp_offset in case something uses it. */
brw->clip.vp_offset = brw->sf.vp_offset;