summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_miptree.c
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-08-30 13:44:31 +0200
committerChristoph Bumiller <[email protected]>2011-08-30 13:55:08 +0200
commit3b3d2e53bc11f9b5fbda812953700b216cd8ab93 (patch)
tree9f0ee3c711dc5b44d1c7f4b5ec6463a324b1ba4c /src/gallium/drivers/nvfx/nvfx_miptree.c
parent0a3f0ff2645d03d5f572cc26932595b8df400505 (diff)
nvfx: use common NOUVEAU_RESOURCE_FLAG_LINEAR define
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_miptree.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_miptree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_miptree.c b/src/gallium/drivers/nvfx/nvfx_miptree.c
index 1be84b90a90..8695aa32e9b 100644
--- a/src/gallium/drivers/nvfx/nvfx_miptree.c
+++ b/src/gallium/drivers/nvfx/nvfx_miptree.c
@@ -33,13 +33,13 @@ nvfx_miptree_choose_format(struct nvfx_miptree *mt)
|| util_format_is_compressed(pt->format)
|| no_swizzle
)
- mt->base.base.flags |= NVFX_RESOURCE_FLAG_LINEAR;
+ mt->base.base.flags |= NOUVEAU_RESOURCE_FLAG_LINEAR;
/* non compressed formats with uniform pitch must be linear, and vice versa */
if(!util_format_is_s3tc(pt->format)
- && (uniform_pitch || mt->base.base.flags & NVFX_RESOURCE_FLAG_LINEAR))
+ && (uniform_pitch || mt->base.base.flags & NOUVEAU_RESOURCE_FLAG_LINEAR))
{
- mt->base.base.flags |= NVFX_RESOURCE_FLAG_LINEAR;
+ mt->base.base.flags |= NOUVEAU_RESOURCE_FLAG_LINEAR;
uniform_pitch = 1;
}
@@ -175,7 +175,7 @@ nvfx_miptree_from_handle(struct pipe_screen *pscreen, const struct pipe_resource
unsigned stride;
if(whandle->stride) {
mt->linear_pitch = whandle->stride;
- mt->base.base.flags |= NVFX_RESOURCE_FLAG_LINEAR;
+ mt->base.base.flags |= NOUVEAU_RESOURCE_FLAG_LINEAR;
} else
nvfx_miptree_choose_format(mt);