summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-11-03 00:36:27 -0700
committerKenneth Graunke <[email protected]>2012-01-12 15:19:34 -0800
commit3e18ad7fd7026e31fd92fe5cf7097d08e5b9a15a (patch)
tree21166c89f51af29e71ee7102c5d3c6f539f3d445
parentfcd5af4a916b4ba7860ba27eb47404934bde0d08 (diff)
i965: Fix Coverity wrong sizeof argument defect.
NOTE: This is a candidate for stable release branches. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42542 Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/gen7_viewport_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_viewport_state.c b/src/mesa/drivers/dri/i965/gen7_viewport_state.c
index 252a35b21fc..d0b89d5fe57 100644
--- 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;