Home
last modified time | relevance | path

Searched refs:cpb_size (Results 1 – 6 of 6) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dradeon_uvd_enc.c273 unsigned cpb_size; in radeon_uvd_create_encoder() local
324 cpb_size = (sscreen->info.gfx_level < GFX9) in radeon_uvd_create_encoder()
330 cpb_size = cpb_size * 3 / 2; in radeon_uvd_create_encoder()
331 cpb_size = cpb_size * enc->cpb_num; in radeon_uvd_create_encoder()
334 if (!si_vid_create_buffer(enc->screen, &enc->cpb, cpb_size, PIPE_USAGE_DEFAULT)) { in radeon_uvd_create_encoder()
Dradeon_vce.c390 unsigned cpb_size; in si_vce_create_encoder() local
453 cpb_size = (sscreen->info.gfx_level < GFX9) in si_vce_create_encoder()
461 cpb_size = cpb_size * 3 / 2; in si_vce_create_encoder()
462 cpb_size = cpb_size * enc->cpb_num; in si_vce_create_encoder()
464 cpb_size += RVCE_MAX_AUX_BUFFER_NUM * RVCE_MAX_BITSTREAM_OUTPUT_ROW_SIZE * 2; in si_vce_create_encoder()
466 if (!si_vid_create_buffer(enc->screen, &enc->cpb, cpb_size, PIPE_USAGE_DEFAULT)) { in si_vce_create_encoder()
Dradeon_vcn_enc.c458 unsigned cpb_size; in radeon_create_encoder() local
503 cpb_size = (sscreen->info.gfx_level < GFX9) in radeon_create_encoder()
509 cpb_size = cpb_size * 3 / 2; in radeon_create_encoder()
510 cpb_size = cpb_size * enc->cpb_num; in radeon_create_encoder()
513 cpb_size += setup_dpb(enc, templat.buffer_format, sscreen->info.gfx_level); in radeon_create_encoder()
515 if (!si_vid_create_buffer(enc->screen, &enc->cpb, cpb_size, PIPE_USAGE_DEFAULT)) { in radeon_create_encoder()
/third_party/mesa3d/src/gallium/drivers/r600/
Dradeon_vce.c404 unsigned cpb_size; in rvce_create_encoder() local
455 cpb_size = align(tmp_surf->u.legacy.level[0].nblk_x * tmp_surf->bpe, 128) * in rvce_create_encoder()
458 cpb_size = cpb_size * 3 / 2; in rvce_create_encoder()
459 cpb_size = cpb_size * enc->cpb_num; in rvce_create_encoder()
461 cpb_size += RVCE_MAX_AUX_BUFFER_NUM * in rvce_create_encoder()
464 if (!rvid_create_buffer(enc->screen, &enc->cpb, cpb_size, PIPE_USAGE_DEFAULT)) { in rvce_create_encoder()
/third_party/libdrm/tests/amdgpu/
Dvce_tests.c489 uint32_t vbuf_size, bs_size = 0x154000, cpb_size; in amdgpu_cs_vce_encode() local
494 cpb_size = vbuf_size * 10; in amdgpu_cs_vce_encode()
506 alloc_resource(&enc.cpb, cpb_size, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_cs_vce_encode()
670 uint32_t vbuf_size, bs_size = 0x154000, cpb_size; in amdgpu_cs_vce_encode_mv() local
676 cpb_size = vbuf_size * 10; in amdgpu_cs_vce_encode_mv()
688 alloc_resource(&enc.cpb, cpb_size, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_cs_vce_encode_mv()
Duvd_enc_tests.c332 uint32_t vbuf_size, bs_size = 0x003f4800, cpb_size; in amdgpu_cs_uvd_enc_encode() local
335 cpb_size = vbuf_size * 10; in amdgpu_cs_uvd_enc_encode()
345 alloc_resource(&enc.cpb, cpb_size, AMDGPU_GEM_DOMAIN_VRAM); in amdgpu_cs_uvd_enc_encode()