diff options
author | Eric Anholt <[email protected]> | 2013-04-13 01:46:09 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-04-21 12:28:04 -0700 |
commit | 47c0b5ecdd14ab5b07e4d3016e8dff7c9c3abb8b (patch) | |
tree | f2ea5c4e3860d6fd7911b50d4440f3fda6807163 /src/mesa/drivers/dri/nouveau | |
parent | 1842dd08b83269816fe8eb8f2dcc1252f606fe48 (diff) |
mesa: Introduce a globally-available minify() macro.
This matches u_minify()'s behavior, for consistency.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/nouveau')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_texture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_texture.c b/src/mesa/drivers/dri/nouveau/nouveau_texture.c index 64cd23b3851..4e3c26bab87 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_texture.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c @@ -411,8 +411,8 @@ relayout_texture(struct gl_context *ctx, struct gl_texture_object *t) }; offset += size; - width = MAX2(1, width / 2); - height = MAX2(1, height / 2); + width = minify(width, 1); + height = minify(height, 1); } /* Get new storage. */ |