mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
radeon/uvd: remove unused variables
Recent commits introduced new unused variable warnings, fix them. Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
df97126731
commit
97f5d00648
1 changed files with 1 additions and 4 deletions
|
|
@ -209,8 +209,6 @@ static uint32_t profile2stream_type(struct ruvd_decoder *dec, unsigned family)
|
|||
|
||||
static unsigned calc_ctx_size(struct ruvd_decoder *dec)
|
||||
{
|
||||
unsigned width_in_mb, height_in_mb, ctx_size;
|
||||
|
||||
unsigned width = align(dec->base.width, VL_MACROBLOCK_WIDTH);
|
||||
unsigned height = align(dec->base.height, VL_MACROBLOCK_HEIGHT);
|
||||
|
||||
|
|
@ -223,8 +221,7 @@ static unsigned calc_ctx_size(struct ruvd_decoder *dec)
|
|||
|
||||
width = align (width, 16);
|
||||
height = align (height, 16);
|
||||
ctx_size = ((width + 255) / 16)*((height + 255) / 16) * 16 * max_references + 52 * 1024;
|
||||
return ctx_size;
|
||||
return ((width + 255) / 16) * ((height + 255) / 16) * 16 * max_references + 52 * 1024;
|
||||
}
|
||||
|
||||
/* calculate size of reference picture buffer */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue