diff options
-rw-r--r-- | src/driver/etna_resource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/etna_resource.c b/src/driver/etna_resource.c index 54dac4b..f7c68f6 100644 --- a/src/driver/etna_resource.c +++ b/src/driver/etna_resource.c @@ -206,8 +206,8 @@ static struct pipe_resource * etna_screen_resource_create(struct pipe_screen *sc offset += align(mip->size, ETNA_PE_ALIGNMENT); /* align mipmaps to 64 bytes to be able to render to them */ if(ix == max_mip_level || (x == 1 && y == 1)) break; // stop at last level - x = MAX2(x >> 1, 1); - y = MAX2(y >> 1, 1); + x = u_minify(x, 1); + y = u_minify(y, 1); ix += 1; } |