From e5714059e12c28c236c31058fcda64d1b4ad39b2 Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Mon, 9 Sep 2024 09:19:30 -0400 Subject: [PATCH] d3d12: Fix setting of direct_8x8_inference_flag in the SPS Part-of: --- .../d3d12/d3d12_video_encoder_bitstream_builder_h264.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gallium/drivers/d3d12/d3d12_video_encoder_bitstream_builder_h264.cpp b/src/gallium/drivers/d3d12/d3d12_video_encoder_bitstream_builder_h264.cpp index 95e7da44fb6..151767ab838 100644 --- a/src/gallium/drivers/d3d12/d3d12_video_encoder_bitstream_builder_h264.cpp +++ b/src/gallium/drivers/d3d12/d3d12_video_encoder_bitstream_builder_h264.cpp @@ -113,10 +113,7 @@ d3d12_video_bitstream_builder_h264::build_sps(const struct pipe_h264_enc_seq_par 0, // gaps_in_frame_num_value_allowed_flag pic_width_in_mbs_minus1, pic_height_in_map_units_minus1, - ((codecConfig.ConfigurationFlags & - D3D12_VIDEO_ENCODER_CODEC_CONFIGURATION_H264_FLAG_USE_ADAPTIVE_8x8_TRANSFORM) != 0) ? - 1u : - 0u, // direct_8x8_inference_flag + 1u, // direct_8x8_inference_flag as per DX12 spec frame_cropping_flag, frame_cropping_codec_config.left, frame_cropping_codec_config.right,