mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
gallivm: use unsigned instead of uint
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24002>
This commit is contained in:
parent
c3ec99bf9a
commit
872719d15c
3 changed files with 9 additions and 9 deletions
|
|
@ -312,8 +312,8 @@ lp_build_tgsi_aos(struct gallivm_state *gallivm,
|
|||
struct lp_build_tgsi_inst_list
|
||||
{
|
||||
struct tgsi_full_instruction *instructions;
|
||||
uint max_instructions;
|
||||
uint num_instructions;
|
||||
unsigned max_instructions;
|
||||
unsigned num_instructions;
|
||||
};
|
||||
|
||||
unsigned lp_bld_tgsi_list_init(struct lp_build_tgsi_context * bld_base);
|
||||
|
|
@ -401,8 +401,8 @@ struct lp_build_tgsi_context
|
|||
int pc;
|
||||
|
||||
struct tgsi_full_instruction *instructions;
|
||||
uint max_instructions;
|
||||
uint num_instructions;
|
||||
unsigned max_instructions;
|
||||
unsigned num_instructions;
|
||||
|
||||
/** This function allows the user to insert some instructions at the
|
||||
* beginning of the program. It is optional and does not need to be
|
||||
|
|
@ -604,7 +604,7 @@ struct lp_build_tgsi_soa_context
|
|||
struct lp_build_mask_context *mask;
|
||||
struct lp_exec_mask exec_mask;
|
||||
|
||||
uint num_immediates;
|
||||
unsigned num_immediates;
|
||||
bool use_immediates_array;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -867,7 +867,7 @@ lp_build_tgsi_aos(struct gallivm_state *gallivm,
|
|||
{
|
||||
struct lp_build_tgsi_aos_context bld;
|
||||
struct tgsi_parse_context parse;
|
||||
uint num_immediates = 0;
|
||||
unsigned num_immediates = 0;
|
||||
unsigned chan;
|
||||
int pc = 0;
|
||||
|
||||
|
|
@ -923,7 +923,7 @@ lp_build_tgsi_aos(struct gallivm_state *gallivm,
|
|||
case TGSI_TOKEN_TYPE_IMMEDIATE:
|
||||
/* simply copy the immediate values into the next immediates[] slot */
|
||||
{
|
||||
const uint size = parse.FullToken.FullImmediate.Immediate.NrTokens - 1;
|
||||
const unsigned size = parse.FullToken.FullImmediate.Immediate.NrTokens - 1;
|
||||
float imm[4];
|
||||
assert(size <= 4);
|
||||
assert(num_immediates < LP_MAX_INLINED_IMMEDIATES);
|
||||
|
|
|
|||
|
|
@ -3010,7 +3010,7 @@ void lp_emit_immediate_soa(
|
|||
struct gallivm_state * gallivm = bld_base->base.gallivm;
|
||||
LLVMValueRef imms[4];
|
||||
unsigned i;
|
||||
const uint size = imm->Immediate.NrTokens - 1;
|
||||
const unsigned size = imm->Immediate.NrTokens - 1;
|
||||
assert(size <= 4);
|
||||
switch (imm->Immediate.DataType) {
|
||||
case TGSI_IMM_FLOAT32:
|
||||
|
|
@ -4610,7 +4610,7 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm,
|
|||
* were forgetting so we're using MAX_VERTEX_VARYING from
|
||||
* that spec even though we could assert if it's not
|
||||
* set, but that's a lot uglier. */
|
||||
uint max_output_vertices;
|
||||
unsigned max_output_vertices;
|
||||
|
||||
/* inputs are always indirect with gs */
|
||||
bld.indirect_files |= (1 << TGSI_FILE_INPUT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue