diff options
Diffstat (limited to 'src/gallium/drivers/svga/svga_resource_texture.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_texture.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.h b/src/gallium/drivers/svga/svga_resource_texture.h index 99ba33b2677..283b87fa780 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.h +++ b/src/gallium/drivers/svga/svga_resource_texture.h @@ -136,7 +136,7 @@ svga_transfer(struct pipe_transfer *transfer) static inline void svga_age_texture_view(struct svga_texture *tex, unsigned level) { - assert(level < Elements(tex->view_age)); + assert(level < ARRAY_SIZE(tex->view_age)); tex->view_age[level] = ++(tex->age); } |