mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 12:28:07 +02:00
r300: use ARRAY_SIZE macro
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
440ab62341
commit
db8c5ae853
1 changed files with 3 additions and 1 deletions
|
|
@ -35,6 +35,8 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "util/macros.h"
|
||||
|
||||
#include "r300_reg.h"
|
||||
#include "radeon_compiler.h"
|
||||
|
||||
|
|
@ -61,7 +63,7 @@ static const struct swizzle_data native_swizzles[] = {
|
|||
{MAKE_SWZ3(HALF, HALF, HALF), R300_ALU_ARGC_HALF, 0, 0}
|
||||
};
|
||||
|
||||
static const int num_native_swizzles = sizeof(native_swizzles)/sizeof(native_swizzles[0]);
|
||||
static const int num_native_swizzles = ARRAY_SIZE(native_swizzles);
|
||||
|
||||
/**
|
||||
* Find a native RGB swizzle that matches the given swizzle.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue