mesa/src/amd
Jonathan Gray ebfb9e1817 aco: use UINT64_C on 64 bit constant arguments
avoids errors seen when building on OpenBSD/amd64

../src/amd/compiler/aco_instruction_selection.cpp:1677:62: error: ambiguous conversion for functional-style cast from 'unsigned long' to 'aco::Operand'
            bld.vop3(aco_opcode::v_mul_f64, Definition(dst), Operand(0x3FF0000000000000lu), tmp);
                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
glibc uses unsigned long for uint64_t on LP64 archs and unsigned long long for
uint64_t on ILP32 archs.  On OpenBSD unsigned long long is used for uint64_t
on all archs.

The Operand constructors are uint8_t uint16_t uint32_t uint64_t
use UINT64_C so lu or llu suffix will be used as needed.

Fixes: df645fa369 ("aco: implement VK_KHR_shader_float_controls")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Tony Wasserka <tony.wasserka@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7944>
2020-12-08 11:11:28 +00:00
..
addrlib amd/addrlib: Initialize Lib members in constructors. 2020-12-03 23:02:17 +00:00
common ac/surface: initialize the FMASK slice size for GFX9+ 2020-12-07 16:19:22 +00:00
compiler aco: use UINT64_C on 64 bit constant arguments 2020-12-08 11:11:28 +00:00
llvm ac,radeonsi: fix load_first_vertex 2020-12-01 15:33:03 -05:00
registers amd: add register enums for VRS 2020-11-17 22:16:19 +00:00
vulkan radv: disable alphaToOne feature 2020-12-08 10:42:27 +01:00
Android.addrlib.mk android: amd/addrlib: add gfx10 support 2019-07-10 09:03:55 +02:00
Android.common.mk android: amd/registers: switch to new generated register definitions 2020-09-06 20:20:34 +02:00
Android.compiler.mk android: aco/isel: Move context initialization code to a dedicated file 2020-09-14 21:26:53 +02:00
Android.mk android: aco: add support for libmesa_aco 2019-09-28 15:56:34 +02:00
Makefile.sources android: aco: add aco_form_hard_clauses.cpp to Makefile.sources 2020-10-30 13:34:06 +00:00
meson.build aco: add framework for unit testing 2020-07-30 16:13:08 +00:00