panfrost: Kill the uXX typedefs

We use uintXX_t most of the time, so let's be consistent and use the
stdint types everywhere instead of their shorter uXX variants.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32899>
This commit is contained in:
Boris Brezillon 2025-01-06 14:47:07 +01:00 committed by Marge Bot
parent 63fc0a2de9
commit 2fdbdc270b
6 changed files with 6 additions and 11 deletions

View file

@ -370,7 +370,7 @@ panfrost_emit_blend(struct panfrost_batch *batch, void *rts,
pan_pack(&packed->opaque[2], INTERNAL_BLEND, cfg) {
cfg.mode = MALI_BLEND_MODE_SHADER;
cfg.shader.pc = (u32)blend_shaders[i];
cfg.shader.pc = (uint32_t)blend_shaders[i];
#if PAN_ARCH <= 7
unsigned ret_offset = fs->info.bifrost.blend[i].return_offset;

View file

@ -163,7 +163,7 @@ jm_submit_jc(struct panfrost_batch *batch, uint64_t first_job_desc,
bo_handles[submit.bo_handle_count++] =
panfrost_bo_handle(dev->sample_positions);
submit.bo_handles = (u64)(uintptr_t)bo_handles;
submit.bo_handles = (uint64_t)(uintptr_t)bo_handles;
if (ctx->is_noop)
ret = 0;
else

View file

@ -32,11 +32,6 @@
#include <stdbool.h>
#include <stdint.h>
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
#define MALI_FORMAT_COMPRESSED (0 << 5)
#define MALI_EXTRACT_TYPE(fmt) ((fmt)&0xe0)
#define MALI_EXTRACT_INDEX(pixfmt) (((pixfmt) >> 12) & 0xFF)

View file

@ -1402,7 +1402,7 @@ enum cs_res_id {
};
static inline void
cs_req_res(struct cs_builder *b, u32 res_mask)
cs_req_res(struct cs_builder *b, uint32_t res_mask)
{
cs_emit(b, REQ_RESOURCE, I) {
I.compute = res_mask & CS_COMPUTE_RES;

View file

@ -97,7 +97,7 @@ pandecode_sample_locations(struct pandecode_context *ctx, const void *fb)
{
pan_section_unpack(fb, FRAMEBUFFER, PARAMETERS, params);
const u16 *PANDECODE_PTR_VAR(ctx, samples, params.sample_locations);
const uint16_t *PANDECODE_PTR_VAR(ctx, samples, params.sample_locations);
pandecode_log(ctx, "Sample locations @%" PRIx64 ":\n",
params.sample_locations);

View file

@ -123,8 +123,8 @@ pandecode_attribute_meta(struct pandecode_context *ctx, int count,
}
/* return bits [lo, hi) of word */
static u32
bits(u32 word, u32 lo, u32 hi)
static uint32_t
bits(uint32_t word, uint32_t lo, uint32_t hi)
{
if (hi - lo >= 32)
return word; // avoid undefined behavior with the shift