[Libva] [PATCH Intel-VA v3] Clean up unused local variable 'i965'
Lim Siew Hoon
siew.hoon.lim at intel.com
Wed Aug 26 04:43:34 PDT 2015
Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
---
src/gen6_mfc.c | 1 -
src/gen75_mfc.c | 1 -
src/gen8_mfc.c | 3 ---
src/gen8_post_processing.c | 1 -
src/i965_drv_video.c | 1 -
src/i965_post_processing.c | 1 -
6 files changed, 8 deletions(-)
diff --git a/src/gen6_mfc.c b/src/gen6_mfc.c
index 1b4fc71..acefc97 100644
--- a/src/gen6_mfc.c
+++ b/src/gen6_mfc.c
@@ -872,7 +872,6 @@ gen6_mfc_avc_software_batchbuffer(VADriverContextP ctx,
struct encode_state *encode_state,
struct intel_encoder_context *encoder_context)
{
- struct i965_driver_data *i965 = i965_driver_data(ctx);
struct gen6_mfc_context *mfc_context = encoder_context->mfc_context;
struct intel_batchbuffer *batch;;
dri_bo *batch_bo;
diff --git a/src/gen75_mfc.c b/src/gen75_mfc.c
index db5f382..0985215 100644
--- a/src/gen75_mfc.c
+++ b/src/gen75_mfc.c
@@ -1249,7 +1249,6 @@ gen75_mfc_avc_software_batchbuffer(VADriverContextP ctx,
struct intel_encoder_context *encoder_context)
{
struct gen6_mfc_context *mfc_context = encoder_context->mfc_context;
- struct i965_driver_data *i965 = i965_driver_data(ctx);
struct intel_batchbuffer *batch;
dri_bo *batch_bo;
int i;
diff --git a/src/gen8_mfc.c b/src/gen8_mfc.c
index 2da27a4..c30bad6 100644
--- a/src/gen8_mfc.c
+++ b/src/gen8_mfc.c
@@ -1191,7 +1191,6 @@ gen8_mfc_avc_software_batchbuffer(VADriverContextP ctx,
struct intel_encoder_context *encoder_context)
{
struct gen6_mfc_context *mfc_context = encoder_context->mfc_context;
- struct i965_driver_data *i965 = i965_driver_data(ctx);
struct intel_batchbuffer *batch;
dri_bo *batch_bo;
int i;
@@ -2259,7 +2258,6 @@ gen8_mfc_mpeg2_software_slice_batchbuffer(VADriverContextP ctx,
struct intel_encoder_context *encoder_context)
{
struct gen6_mfc_context *mfc_context = encoder_context->mfc_context;
- struct i965_driver_data *i965 = i965_driver_data(ctx);
struct intel_batchbuffer *batch;
VAEncSliceParameterBufferMPEG2 *next_slice_group_param = NULL;
dri_bo *batch_bo;
@@ -4385,7 +4383,6 @@ static int gen8_mfc_calc_vp8_coded_buffer_size(VADriverContextP ctx,
struct encode_state *encode_state,
struct intel_encoder_context *encoder_context)
{
- struct i965_driver_data *i965 = i965_driver_data(ctx);
struct gen6_mfc_context *mfc_context = encoder_context->mfc_context;
VAEncPictureParameterBufferVP8 *pic_param = (VAEncPictureParameterBufferVP8 *)encode_state->pic_param_ext->buffer;
unsigned char is_intra_frame = !pic_param->pic_flags.bits.frame_type;
diff --git a/src/gen8_post_processing.c b/src/gen8_post_processing.c
index 2006189..dfa5b97 100644
--- a/src/gen8_post_processing.c
+++ b/src/gen8_post_processing.c
@@ -1254,7 +1254,6 @@ gen8_pp_curbe_load(VADriverContextP ctx,
struct i965_post_processing_context *pp_context)
{
struct intel_batchbuffer *batch = pp_context->batch;
- struct i965_driver_data *i965 = i965_driver_data(ctx);
int param_size = 64;
param_size = sizeof(struct gen7_pp_static_parameter);
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 4ba87f8..03fe9dc 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -706,7 +706,6 @@ i965_GetConfigAttributes(VADriverContextP ctx,
int num_attribs)
{
VAStatus va_status;
- struct i965_driver_data *i965 = i965_driver_data(ctx);
int i;
va_status = i965_validate_config(ctx, profile, entrypoint);
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index 1c0b4ef..a68a425 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -4743,7 +4743,6 @@ i965_post_processing_internal(
)
{
VAStatus va_status;
- struct i965_driver_data *i965 = i965_driver_data(ctx);
if (pp_context && pp_context->intel_post_processing) {
va_status = (pp_context->intel_post_processing)(ctx, pp_context,
--
2.1.0
More information about the Libva
mailing list