uxa/i965: Drop superfluous 'state' variable

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-06-04 12:15:51 +01:00
parent 15a00ba047
commit a99bf0125f
1 changed files with 7 additions and 6 deletions

View File

@ -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;