dzn: use common SWAP
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36297>
This commit is contained in:
committed by
Marge Bot
parent
986530d231
commit
d51b411f56
@@ -1965,10 +1965,10 @@ adjust_clear_color(struct dzn_physical_device *pdev,
|
||||
// manually where it matters, like here, in the clear path.
|
||||
if (format == VK_FORMAT_B4G4R4A4_UNORM_PACK16) {
|
||||
if (pdev->support_a4b4g4r4) {
|
||||
DZN_SWAP(float, out.float32[0], out.float32[2]);
|
||||
SWAP(out.float32[0], out.float32[2]);
|
||||
} else {
|
||||
DZN_SWAP(float, out.float32[0], out.float32[1]);
|
||||
DZN_SWAP(float, out.float32[2], out.float32[3]);
|
||||
SWAP(out.float32[0], out.float32[1]);
|
||||
SWAP(out.float32[2], out.float32[3]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -66,13 +66,6 @@
|
||||
#include "spirv_to_dxil.h"
|
||||
#include "dzn_abi_helper.h"
|
||||
|
||||
#define DZN_SWAP(t, a, b) \
|
||||
do { \
|
||||
t __tmp = a; \
|
||||
a = b; \
|
||||
b = __tmp; \
|
||||
} while (0)
|
||||
|
||||
#define dzn_stub() unreachable("Unsupported feature")
|
||||
|
||||
#if defined(VK_USE_PLATFORM_WIN32_KHR) || \
|
||||
|
||||
Reference in New Issue
Block a user