summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/svga/svgadump/svga_shader_op.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-05-29 10:22:51 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-05-29 10:22:51 +0000
commitc9223eed3c16cd3e98a8f56dda953d8f299de0e3 (patch)
tree53e2a1c3f13bcf6b4ed201d7bc135e7213c94ebe /lib/mesa/src/gallium/drivers/svga/svgadump/svga_shader_op.c
parent6e8f2d062ab9c198239b9283b2b7ed12f4ea17d8 (diff)
Import Mesa 11.2.2
Diffstat (limited to 'lib/mesa/src/gallium/drivers/svga/svgadump/svga_shader_op.c')
-rw-r--r--lib/mesa/src/gallium/drivers/svga/svgadump/svga_shader_op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/drivers/svga/svgadump/svga_shader_op.c b/lib/mesa/src/gallium/drivers/svga/svgadump/svga_shader_op.c
index ad1549d9f..03a63cf5e 100644
--- a/lib/mesa/src/gallium/drivers/svga/svgadump/svga_shader_op.c
+++ b/lib/mesa/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 );