mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
format_utils: properly parenthesize macro params
this otherwise breaks evaluation of the parameters on arm64
cc: mesa-stable
fixes #6496
Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16860>
(cherry picked from commit ba09a00a5c)
This commit is contained in:
parent
c2f4b1acfb
commit
e01d543c76
2 changed files with 2 additions and 2 deletions
|
|
@ -1372,7 +1372,7 @@
|
|||
"description": "format_utils: properly parenthesize macro params",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
/* Extends an integer of size SRC_BITS to one of size DST_BITS linearly */
|
||||
#define EXTEND_NORMALIZED_INT(X, SRC_BITS, DST_BITS) \
|
||||
(((X) * (int)(u_uintN_max(DST_BITS) / u_uintN_max(SRC_BITS))) + \
|
||||
((DST_BITS % SRC_BITS) ? ((X) >> (SRC_BITS - DST_BITS % SRC_BITS)) : 0))
|
||||
(((DST_BITS) % (SRC_BITS)) ? ((X) >> ((SRC_BITS) - (DST_BITS) % (SRC_BITS))) : 0))
|
||||
|
||||
static inline float
|
||||
_mesa_unorm_to_float(unsigned x, unsigned src_bits)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue