amd/vpelib: Fix compilation warnings

Reviewed-by: Navid Assadian <Navid.Assadian@amd.com>
Acked-by: Chih-Wei Chien <Chih-Wei.Chien@amd.com>
Signed-off-by: Roy Chan <roy.chan@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31693>
This commit is contained in:
Chan, Roy
2024-09-19 23:15:11 -04:00
committed by Marge Bot
parent ab9bd6b932
commit c252d22e91
3 changed files with 3 additions and 2 deletions

View File

@@ -165,6 +165,7 @@ enum vpe_status vpe10_build_vpe_cmd(
if (vpe_desc_writer->status != VPE_STATUS_OK) {
return vpe_desc_writer->status;
}
vpe_desc_writer->complete(vpe_desc_writer);
return VPE_STATUS_OK;

View File

@@ -832,7 +832,7 @@ enum vpe_status vpe_color_update_shaper(const struct vpe_priv *vpe_priv, uint16_
// right now shaper is always programmed with linear, once cached, it is always reused.
for (int i = 0; i < vpe_priv->pub.caps->resource_caps.num_mpc_3dlut; i++) {
if (vpe_priv->init.debug.disable_lut_caching ||
(shaper_func && shaper_func->cache_info[i].tf != tf)) {
(shaper_func && (shaper_func->cache_info[i].tf != tf))) {
// if the caching has the required data cached, skip the update
update = true;
}

View File

@@ -75,7 +75,7 @@ struct vpep_direct_config_packet {
struct config_writer {
struct vpe_buf *buf; /**< store the current buf pointer */
/* store the base addr of the currnet config
/* store the base addr of the current config
* i.e. config header
* it is always constructed in emb_buf
*/