From: Eric Anholt Date: Thu, 25 Sep 2014 04:14:44 +0000 (-0700) Subject: vc4: Fix miplevel validation for raster textures. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45962fbeee6ef0011e63613fe25c14e7062d3e43;p=mesa.git vc4: Fix miplevel validation for raster textures. We were using the un-minified value, meaning we'd reject correctly laid out textures. --- diff --git a/src/gallium/drivers/vc4/vc4_simulator_validate.c b/src/gallium/drivers/vc4/vc4_simulator_validate.c index cb8b5659016..1b63bf334f2 100644 --- a/src/gallium/drivers/vc4/vc4_simulator_validate.c +++ b/src/gallium/drivers/vc4/vc4_simulator_validate.c @@ -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; }