Revert "nouveau: nv30: Disable swizzled surface usage if any dimension is 1 (Warsow creates a 1x1 front buffer)"
This reverts commit ec7844537e
.
This commit is contained in:
parent
ec7844537e
commit
b91503f457
|
@ -72,9 +72,6 @@ nv30_miptree_create(struct pipe_screen *pscreen, const struct pipe_texture *pt)
|
||||||
mt->base.screen = pscreen;
|
mt->base.screen = pscreen;
|
||||||
|
|
||||||
/* Swizzled textures must be POT */
|
/* Swizzled textures must be POT */
|
||||||
if ((pt->width0 == 1) || (pt->height0 == 1)) {
|
|
||||||
mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR;
|
|
||||||
} else
|
|
||||||
if (pt->width0 & (pt->width0 - 1) ||
|
if (pt->width0 & (pt->width0 - 1) ||
|
||||||
pt->height0 & (pt->height0 - 1))
|
pt->height0 & (pt->height0 - 1))
|
||||||
mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR;
|
mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR;
|
||||||
|
|
Loading…
Reference in New Issue