vc4: Fix use of a bool as an enum.
authorEric Anholt <eric@anholt.net>
Mon, 16 Mar 2015 21:14:22 +0000 (14:14 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 24 Mar 2015 17:39:12 +0000 (10:39 -0700)
The enum compared to was 0, so it worked out, but it sure looked wrong.

src/gallium/drivers/vc4/vc4_resource.c

index c640cf6ad5b86b833f076babd90d22b5bdc63c1d..b8628ec725881bfd9f221ace1ac3253059f38cdd 100644 (file)
@@ -256,7 +256,7 @@ vc4_setup_slices(struct vc4_resource *rsc)
                         level_height = u_minify(pot_height, i);
                 }
 
-                if (rsc->tiled == VC4_TILING_FORMAT_LINEAR) {
+                if (!rsc->tiled) {
                         slice->tiling = VC4_TILING_FORMAT_LINEAR;
                         level_width = align(level_width, 16);
                 } else {