v3dv: replace boolean and uint with bool and size_t

There's no reason to use the gallium `p_compiler.h` types in vulkan code.

Inspired by https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23577,
but using `size_t` for `ulist_data_size` because its two users are
`blob_read_bytes()` and `memcpy()`, both of which expect a `size_t`.

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23795>
This commit is contained in:
Eric Engestrom 2023-06-22 12:12:44 +01:00 committed by Marge Bot
parent fa8a232691
commit 337908440e
2 changed files with 2 additions and 2 deletions

View file

@ -359,7 +359,7 @@ v3dv_bo_unmap(struct v3dv_device *device, struct v3dv_bo *bo)
bo->map_size = 0;
}
static boolean
static bool
reallocate_size_list(struct v3dv_bo_cache *cache,
struct v3dv_device *device,
uint32_t size)

View file

@ -542,7 +542,7 @@ shader_variant_create_from_blob(struct v3dv_device *device,
if (blob->overrun)
return NULL;
uint ulist_data_size = sizeof(uint32_t) * ulist_count;
size_t ulist_data_size = sizeof(uint32_t) * ulist_count;
const void *ulist_data_data = blob_read_bytes(blob, ulist_data_size);
if (blob->overrun)
return NULL;