From 379dd3ff5297abea687695fe388fffe3098f03f0 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 27 Aug 2024 11:23:48 +0200 Subject: [PATCH] pipe: Remove unused fields in video rate control Reviewed-By: Sil Vilerino Part-of: --- src/gallium/drivers/virgl/virgl_video.c | 6 ------ src/gallium/include/pipe/p_video_state.h | 9 --------- 2 files changed, 15 deletions(-) diff --git a/src/gallium/drivers/virgl/virgl_video.c b/src/gallium/drivers/virgl/virgl_video.c index ed98d1e1e77..eb08e7237fa 100644 --- a/src/gallium/drivers/virgl/virgl_video.c +++ b/src/gallium/drivers/virgl/virgl_video.c @@ -229,9 +229,6 @@ static int fill_h264_enc_picture_desc(const struct pipe_picture_desc *desc, ITEM_SET(vh264, h264, rate_ctrl[i].frame_rate_den); ITEM_SET(vh264, h264, rate_ctrl[i].vbv_buffer_size); ITEM_SET(vh264, h264, rate_ctrl[i].vbv_buf_lv); - ITEM_SET(vh264, h264, rate_ctrl[i].target_bits_picture); - ITEM_SET(vh264, h264, rate_ctrl[i].peak_bits_picture_integer); - ITEM_SET(vh264, h264, rate_ctrl[i].peak_bits_picture_fraction); ITEM_SET(vh264, h264, rate_ctrl[i].fill_data_enable); ITEM_SET(vh264, h264, rate_ctrl[i].skip_frame_enable); ITEM_SET(vh264, h264, rate_ctrl[i].enforce_hrd); @@ -479,9 +476,6 @@ static int fill_h265_enc_picture_desc(const struct pipe_picture_desc *desc, vh265->rc.quant_b_frames = h265->rc[0].quant_b_frames; vh265->rc.vbv_buffer_size = h265->rc[0].vbv_buffer_size; vh265->rc.vbv_buf_lv = h265->rc[0].vbv_buf_lv; - vh265->rc.target_bits_picture = h265->rc[0].target_bits_picture; - vh265->rc.peak_bits_picture_integer = h265->rc[0].peak_bits_picture_integer; - vh265->rc.peak_bits_picture_fraction = h265->rc[0].peak_bits_picture_fraction; vh265->rc.fill_data_enable = h265->rc[0].fill_data_enable; vh265->rc.skip_frame_enable = h265->rc[0].skip_frame_enable; vh265->rc.enforce_hrd = h265->rc[0].enforce_hrd; diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h index f1a8a244d3f..dd4073e265d 100644 --- a/src/gallium/include/pipe/p_video_state.h +++ b/src/gallium/include/pipe/p_video_state.h @@ -538,9 +538,6 @@ struct pipe_h264_enc_rate_control unsigned vbv_buf_lv; unsigned vbv_buf_initial_size; bool app_requested_hrd_buffer; - unsigned target_bits_picture; - unsigned peak_bits_picture_integer; - unsigned peak_bits_picture_fraction; unsigned fill_data_enable; unsigned skip_frame_enable; unsigned enforce_hrd; @@ -1143,9 +1140,6 @@ struct pipe_h265_enc_rate_control unsigned vbv_buf_lv; unsigned vbv_buf_initial_size; bool app_requested_hrd_buffer; - unsigned target_bits_picture; - unsigned peak_bits_picture_integer; - unsigned peak_bits_picture_fraction; unsigned fill_data_enable; unsigned skip_frame_enable; unsigned enforce_hrd; @@ -1225,9 +1219,6 @@ struct pipe_av1_enc_rate_control unsigned vbv_buf_lv; unsigned vbv_buf_initial_size; bool app_requested_hrd_buffer; - unsigned target_bits_picture; - unsigned peak_bits_picture_integer; - unsigned peak_bits_picture_fraction; unsigned fill_data_enable; unsigned skip_frame_enable; unsigned enforce_hrd;