summaryrefslogtreecommitdiff
path: root/src/i965_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-06-04 12:15:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-04 12:17:49 +0100
commita99bf0125f8f166ff2d65449ecd376c99c3024b8 (patch)
tree9e9b29ad395bc4df8386183b7ab18d01e1c4320c /src/i965_render.c
parent15a00ba047fdb7d388a322f2e33894d20787af2f (diff)
uxa/i965: Drop superfluous 'state' variable
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/i965_render.c')
-rw-r--r--src/i965_render.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index c4c1dd32..7bfbcbd8 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -2538,20 +2538,21 @@ gen6_composite_create_blend_state(intel_screen_private *intel)
static drm_intel_bo *
gen6_composite_create_depth_stencil_state(intel_screen_private *intel)
{
- struct gen6_depth_stencil_state *state;
drm_intel_bo *depth_stencil_bo;
int ret;
- depth_stencil_bo = drm_intel_bo_alloc(intel->bufmgr,
- "gen6 DEPTH_STENCIL state",
- sizeof(*state),
- 4096);
+ depth_stencil_bo =
+ drm_intel_bo_alloc(intel->bufmgr,
+ "gen6 DEPTH_STENCIL state",
+ sizeof(struct gen6_depth_stencil_state),
+ 4096);
assert(depth_stencil_bo);
ret = drm_intel_bo_map(depth_stencil_bo, TRUE);
assert(ret == 0);
- state = memset(depth_stencil_bo->virtual, 0, sizeof(*state));
+ memset(depth_stencil_bo->virtual, 0,
+ sizeof(struct gen6_depth_stencil_state));
drm_intel_bo_unmap(depth_stencil_bo);
return depth_stencil_bo;