mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-02 02:00:36 +01:00
r600: remove TABLE_SIZE macro
Use ARRAY_SIZE instead. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
43ac091e4c
commit
ca8f71f4cb
2 changed files with 2 additions and 4 deletions
|
|
@ -568,7 +568,7 @@ int r600_isa_init(struct r600_context *ctx, struct r600_isa *isa) {
|
|||
isa->alu_op2_map[opc] = i + 1;
|
||||
}
|
||||
|
||||
for (i = 0; i < TABLE_SIZE(fetch_op_table); ++i) {
|
||||
for (i = 0; i < ARRAY_SIZE(fetch_op_table); ++i) {
|
||||
const struct fetch_op_info *op = &fetch_op_table[i];
|
||||
unsigned opc = op->opcode[isa->hw_class];
|
||||
if ((op->flags & FF_GDS) || ((opc & 0xFF) != opc))
|
||||
|
|
@ -576,7 +576,7 @@ int r600_isa_init(struct r600_context *ctx, struct r600_isa *isa) {
|
|||
isa->fetch_map[opc] = i + 1;
|
||||
}
|
||||
|
||||
for (i = 0; i < TABLE_SIZE(cf_op_table); ++i) {
|
||||
for (i = 0; i < ARRAY_SIZE(cf_op_table); ++i) {
|
||||
const struct cf_op_info *op = &cf_op_table[i];
|
||||
unsigned opc = op->opcode[isa->hw_class];
|
||||
if (opc == -1)
|
||||
|
|
|
|||
|
|
@ -675,8 +675,6 @@ struct r600_context;
|
|||
int r600_isa_init(struct r600_context *ctx, struct r600_isa *isa);
|
||||
int r600_isa_destroy(struct r600_isa *isa);
|
||||
|
||||
#define TABLE_SIZE(t) (sizeof(t)/sizeof(t[0]))
|
||||
|
||||
extern const struct alu_op_info r600_alu_op_table[];
|
||||
|
||||
unsigned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue