Commit a2719f91 authored by Rodrigo Siqueira's avatar Rodrigo Siqueira Committed by Alex Deucher
Browse files

drm/amd/display: Move bw_fixed from DML folder



bw_fixed does not need any FPU operation, and it is used on DCE and DCN.
For this reason, this commit moves bw_fixed to the basic folder outside
DML.

Reviewed-by: default avatarQingqing Zhuo <Qingqing.Zhuo@amd.com>
Signed-off-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 13f9173a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -30,7 +30,8 @@ BASICS := \
	vector.o \
	dc_common.o \
	dce_calcs.o \
	custom_float.o
	custom_float.o \
	bw_fixed.o

AMD_DAL_BASICS = $(addprefix $(AMDDALPATH)/dc/basics/,$(BASICS))

+6 −7
Original line number Diff line number Diff line
// SPDX-License-Identifier: MIT
/*
 * Copyright 2015 Advanced Micro Devices, Inc.
 * Copyright 2023 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
@@ -106,8 +107,7 @@ struct bw_fixed bw_frc_to_fixed(int64_t numerator, int64_t denominator)
	return res;
}

struct bw_fixed bw_floor2(
	const struct bw_fixed arg,
struct bw_fixed bw_floor2(const struct bw_fixed arg,
			  const struct bw_fixed significance)
{
	struct bw_fixed result;
@@ -119,8 +119,7 @@ struct bw_fixed bw_floor2(
	return result;
}

struct bw_fixed bw_ceil2(
	const struct bw_fixed arg,
struct bw_fixed bw_ceil2(const struct bw_fixed arg,
			 const struct bw_fixed significance)
{
	struct bw_fixed result;
+0 −2
Original line number Diff line number Diff line
@@ -134,8 +134,6 @@ CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/calcs/dcn_calcs.o := $(dml_rcflags)
CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/calcs/dcn_calc_auto.o := $(dml_rcflags)
CFLAGS_REMOVE_$(AMDDALPATH)/dc/dml/calcs/dcn_calc_math.o := $(dml_rcflags)

DML = calcs/bw_fixed.o

ifdef CONFIG_DRM_AMD_DC_FP
DML += display_mode_lib.o display_rq_dlg_helpers.o dml1_display_rq_dlg_calc.o
DML += dcn10/dcn10_fpu.o