change encode_10bit → bit-depth

This commit is contained in:
galister
2025-07-11 23:09:37 +02:00
committed by xytovl
parent ed32676299
commit ec42db83bc
10 changed files with 66 additions and 50 deletions
+2 -1
View File
@@ -409,7 +409,8 @@ static void comp_wivrn_create_images(struct comp_target * ct, const struct comp_
target_init_semaphores(cn);
if (cn->settings[0].use_10bit)
// will fail on encoder init if bit_depth is arbitrary garbage
if (cn->settings[0].bit_depth == 10)
ct->format = VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16;
else
ct->format = VK_FORMAT_G8_B8R8_2PLANE_420_UNORM;