diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-12-30 09:39:04 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-02-27 10:30:18 +0800 |
commit | a549e480796a9aebb2c1f1255a655980f6d5e438 (patch) | |
tree | 3eed15a6ebaca91555b645d93186a660e6cd4a8f /src/i965_render.c | |
parent | befe2d485f45f8b9a5856581d172c1150aeef917 (diff) | |
download | libva-intel-driver-a549e480796a9aebb2c1f1255a655980f6d5e438.tar.gz libva-intel-driver-a549e480796a9aebb2c1f1255a655980f6d5e438.tar.bz2 libva-intel-driver-a549e480796a9aebb2c1f1255a655980f6d5e438.zip |
Render/HSW: Fix the bug caused by merging code
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Diffstat (limited to 'src/i965_render.c')
-rw-r--r-- | src/i965_render.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/i965_render.c b/src/i965_render.c index 8e14d87..bb974e7 100644 --- a/src/i965_render.c +++ b/src/i965_render.c @@ -2491,7 +2491,6 @@ gen7_render_initialize(VADriverContextP ctx) struct i965_driver_data *i965 = i965_driver_data(ctx); struct i965_render_state *render_state = &i965->render_state; dri_bo *bo; - int size; /* VERTEX BUFFER */ dri_bo_unreference(render_state->vb.vertex_buffer); @@ -2540,10 +2539,9 @@ gen7_render_initialize(VADriverContextP ctx) /* BLEND STATE */ dri_bo_unreference(render_state->cc.blend); - size = sizeof(struct gen8_global_blend_state) + 2 * sizeof(struct gen8_blend_state_rt); bo = dri_bo_alloc(i965->intel.bufmgr, "blend state", - size, + sizeof(struct gen6_blend_state), 4096); assert(bo); render_state->cc.blend = bo; |