amd: prepare dropping include of p_compiler.h

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Lionel Landwerlin 2019-08-09 16:01:04 +03:00
parent a233a3a74e
commit 8a884a25c5
3 changed files with 5 additions and 4 deletions

View 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);

View 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);

View 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 */