diff options
author | Eric Anholt <[email protected]> | 2015-03-16 14:14:22 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-03-24 10:39:12 -0700 |
commit | 8975a09494cb6ee7b010fddb0ca5a7a74d46b0c7 (patch) | |
tree | 8753b02aa8eba49bdd86ae3070a7a7acac7139b8 /src/gallium/drivers | |
parent | 04605c21f65bfbc78018c5bafa8cbf49e96a33b5 (diff) |
vc4: Fix use of a bool as an enum.
The enum compared to was 0, so it worked out, but it sure looked wrong.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c index c640cf6ad5b..b8628ec7258 100644 --- a/src/gallium/drivers/vc4/vc4_resource.c +++ b/src/gallium/drivers/vc4/vc4_resource.c @@ -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 { |