amd: prepare dropping include of p_compiler.h
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 9 Aug 2019 13:01:04 +0000 (16:01 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 9 Aug 2019 19:59:43 +0000 (22:59 +0300)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
src/amd/common/ac_gpu_info.c
src/amd/common/ac_surface.c
src/amd/vulkan/radv_device.c

index f1f31e55abe66395a7346be960f5d3c889135f1a..b02a3e98113e6389f4cef5e5aaf419eb40d3c853 100644 (file)
@@ -26,6 +26,7 @@
 #include "ac_gpu_info.h"
 #include "sid.h"
 
+#include "util/macros.h"
 #include "util/u_math.h"
 
 #include <stdio.h>
@@ -460,7 +461,7 @@ bool ac_query_gpu_info(int fd, void *dev_p,
        info->gart_page_size = alignment_info.size_remote;
 
        if (info->chip_class == GFX6)
-               info->gfx_ib_pad_with_type2 = TRUE;
+               info->gfx_ib_pad_with_type2 = true;
 
        unsigned ib_align = 0;
        ib_align = MAX2(ib_align, gfx.ib_start_alignment);
index a9052d068e9c9bce6e5484a9ac2176b0296e1de3..5cfd192118df57a95875194c0fc174380d494674 100644 (file)
@@ -1265,7 +1265,7 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib,
                                                        return ret;
 
                                                surf->u.gfx9.dcc_retile_map[index * 2] = addrout.addr;
-                                               if (addrout.addr > USHRT_MAX)
+                                               if (addrout.addr > UINT16_MAX)
                                                        surf->u.gfx9.dcc_retile_use_uint16 = false;
 
                                                /* Compute dst DCC address */
@@ -1278,7 +1278,7 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib,
                                                        return ret;
 
                                                surf->u.gfx9.dcc_retile_map[index * 2 + 1] = addrout.addr;
-                                               if (addrout.addr > USHRT_MAX)
+                                               if (addrout.addr > UINT16_MAX)
                                                        surf->u.gfx9.dcc_retile_use_uint16 = false;
 
                                                assert(index * 2 + 1 < surf->u.gfx9.dcc_retile_num_elements);
index 4a2d836abe30aeab86dea4d7da0e670c5ac7d5a5..8e5d5bee921287039b7fbd6b68aad7d42d166999 100644 (file)
@@ -4480,7 +4480,7 @@ radv_initialise_color_surface(struct radv_device *device,
        format = radv_translate_colorformat(iview->vk_format);
        if (format == V_028C70_COLOR_INVALID || ntype == ~0u)
                radv_finishme("Illegal color\n");
-       swap = radv_translate_colorswap(iview->vk_format, FALSE);
+       swap = radv_translate_colorswap(iview->vk_format, false);
        endian = radv_colorformat_endian_swap(format);
 
        /* blend clamp should be set for all NORM/SRGB types */