drm/radeon/evergreen: make texdw[] array larger
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Feb 2012 07:38:11 +0000 (10:38 +0300)
committerDave Airlie <airlied@redhat.com>
Thu, 16 Feb 2012 09:18:13 +0000 (09:18 +0000)
We store stuff in texdw[7] so this array needs to have 8 elements.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen_cs.c

index 2ed17f7617362ea3b22ab9affb95a592d286251f..49203b67b81b23eb99f514032f02724f41213f9e 100644 (file)
@@ -638,7 +638,7 @@ static int evergreen_cs_track_validate_texture(struct radeon_cs_parser *p,
        struct eg_surface surf;
        unsigned long toffset, moffset;
        unsigned dim, llevel, mslice, width, height, depth, i;
-       u32 texdw[7];
+       u32 texdw[8];
        int r;
 
        texdw[0] = radeon_get_ib_value(p, idx + 0);