projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d807782
)
nouveau: nv30: Disable swizzled surface usage if any dimension is 1 (Warsow creates...
author
Patrice Mandin
<patmandin@gmail.com>
Sat, 12 Dec 2009 21:31:53 +0000
(22:31 +0100)
committer
Patrice Mandin
<patmandin@gmail.com>
Sat, 12 Dec 2009 21:31:53 +0000
(22:31 +0100)
src/gallium/drivers/nv30/nv30_miptree.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv30/nv30_miptree.c
b/src/gallium/drivers/nv30/nv30_miptree.c
index 920fe64c32f804ec51746dd63294146db4d9fb10..fd7c65f6b37aaa663c6059a25a27566624e955e5 100644
(file)
--- a/
src/gallium/drivers/nv30/nv30_miptree.c
+++ b/
src/gallium/drivers/nv30/nv30_miptree.c
@@
-72,6
+72,9
@@
nv30_miptree_create(struct pipe_screen *pscreen, const struct pipe_texture *pt)
mt->base.screen = pscreen;
/* 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) ||
pt->height0 & (pt->height0 - 1))
mt->base.tex_usage |= NOUVEAU_TEXTURE_USAGE_LINEAR;