summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svgadump
diff options
context:
space:
mode:
authorEdward O'Callaghan <[email protected]>2015-12-04 15:31:40 +1100
committerMarek Olšák <[email protected]>2015-12-06 17:09:52 +0100
commit82871081fcc963d87c5441c0b4afcb597f561516 (patch)
tree184469f62164b90463510fd3dbaf67a988e129c3 /src/gallium/drivers/svga/svgadump
parent70d2d3ef7f8ac98102cd930a3614eb758cfe7661 (diff)
svga: Make use of ARRAY_SIZE macro
Signed-off-by: Edward O'Callaghan <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svgadump')
-rw-r--r--src/gallium/drivers/svga/svgadump/svga_shader_op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svgadump/svga_shader_op.c b/src/gallium/drivers/svga/svgadump/svga_shader_op.c
index ad1549d9f81..03a63cf5e2b 100644
--- a/src/gallium/drivers/svga/svgadump/svga_shader_op.c
+++ b/src/gallium/drivers/svga/svgadump/svga_shader_op.c
@@ -144,7 +144,7 @@ const struct sh_opcode_info *svga_opcode_info( uint op )
{
struct sh_opcode_info *info;
- if (op >= sizeof( opcode_info ) / sizeof( opcode_info[0] )) {
+ if (op >= ARRAY_SIZE(opcode_info)) {
/* The opcode is either PHASE, COMMENT, END or out of range.
*/
assert( 0 );