From: Dave Airlie <airlied@gmail.com>
To: amd-gfx@lists.freedesktop.org
Subject: [PATCH 1/3] amd/dc: move custom_float definition into custom_float.h
Date: Fri, 10 Jul 2026 16:37:42 +1000 [thread overview]
Message-ID: <20260710063946.2262582-2-airlied@gmail.com> (raw)
In-Reply-To: <20260710063946.2262582-1-airlied@gmail.com>
From: Dave Airlie <airlied@redhat.com>
Drop the unused custom_float_value and the spl one.
Signed-off-by: Dave Airlie <airlied@redhat.com>
---
drivers/gpu/drm/amd/display/dc/inc/custom_float.h | 7 ++++++-
drivers/gpu/drm/amd/display/dc/inc/hw/opp.h | 13 -------------
.../gpu/drm/amd/display/dc/sspl/spl_custom_float.h | 7 -------
3 files changed, 6 insertions(+), 21 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/inc/custom_float.h b/drivers/gpu/drm/amd/display/dc/inc/custom_float.h
index f57239672216..c408fee8e181 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/custom_float.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/custom_float.h
@@ -28,7 +28,12 @@
#include "bw_fixed.h"
#include "hw_shared.h"
-#include "opp.h"
+
+struct custom_float_format {
+ uint32_t mantissa_bits;
+ uint32_t exponenta_bits;
+ bool sign;
+};
bool convert_to_custom_float_format(
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/opp.h b/drivers/gpu/drm/amd/display/dc/inc/hw/opp.h
index 73cc34ea7726..ce30eab16f86 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/opp.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/opp.h
@@ -142,19 +142,6 @@ enum channel_name {
CHANNEL_NAME_BLUE
};
-struct custom_float_format {
- uint32_t mantissa_bits;
- uint32_t exponenta_bits;
- bool sign;
-};
-
-struct custom_float_value {
- uint32_t mantissa;
- uint32_t exponenta;
- uint32_t value;
- bool negative;
-};
-
struct hw_x_point {
uint32_t custom_float_x;
struct fixed31_32 x;
diff --git a/drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.h b/drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.h
index f3fd8d30e638..60620537ae3e 100644
--- a/drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.h
+++ b/drivers/gpu/drm/amd/display/dc/sspl/spl_custom_float.h
@@ -14,13 +14,6 @@ struct spl_custom_float_format {
bool sign;
};
-struct spl_custom_float_value {
- uint32_t mantissa;
- uint32_t exponenta;
- uint32_t value;
- bool negative;
-};
-
bool SPL_NAMESPACE(spl_convert_to_custom_float_format(
struct spl_fixed31_32 value,
const struct spl_custom_float_format *format,
--
2.54.0
next prev parent reply other threads:[~2026-07-10 6:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 6:37 amdgpu: sspl small piece of dieting to start Dave Airlie
2026-07-10 6:37 ` Dave Airlie [this message]
2026-07-10 6:37 ` [PATCH 2/3] amd/dc: drop spl copies of custom float and fixed pt libraries Dave Airlie
2026-07-10 6:37 ` [PATCH 3/3] amd/dc/spl: drop unused function Dave Airlie
2026-07-17 18:41 ` amdgpu: sspl small piece of dieting to start Leo Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260710063946.2262582-2-airlied@gmail.com \
--to=airlied@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox