vc4: Fix miplevel validation for raster textures.
authorEric Anholt <eric@anholt.net>
Thu, 25 Sep 2014 04:14:44 +0000 (21:14 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 25 Sep 2014 23:41:25 +0000 (16:41 -0700)
We were using the un-minified value, meaning we'd reject correctly laid
out textures.

src/gallium/drivers/vc4/vc4_simulator_validate.c

index cb8b565901680156e605d35870814e2a017ecd14..1b63bf334f27f3991fa4f1648d6f2b012326da68 100644 (file)
@@ -847,7 +847,7 @@ reloc_tex(struct exec_info *exec,
                        break;
                default:
                        aligned_width = roundup(level_width, 16 / cpp);
-                       aligned_height = height;
+                       aligned_height = level_height;
                        break;
                }