summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx/nvfx_surface.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_surface.c
parent0a3f0ff2645d03d5f572cc26932595b8df400505 (diff)
nvfx: use common NOUVEAU_RESOURCE_FLAG_LINEAR define
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_surface.c')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_surface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_surface.c b/src/gallium/drivers/nvfx/nvfx_surface.c
index 04b0304b44f..91ca1c3750e 100644
--- a/src/gallium/drivers/nvfx/nvfx_surface.c
+++ b/src/gallium/drivers/nvfx/nvfx_surface.c
@@ -102,7 +102,7 @@ nvfx_region_init_for_surface(struct nv04_region* rgn, struct nvfx_surface* surf,
rgn->bo = ((struct nvfx_resource*)surf->base.base.texture)->bo;
rgn->offset = surf->offset;
- if(surf->base.base.texture->flags & NVFX_RESOURCE_FLAG_LINEAR)
+ if(surf->base.base.texture->flags & NOUVEAU_RESOURCE_FLAG_LINEAR)
rgn->pitch = surf->pitch;
else
{
@@ -137,7 +137,7 @@ nvfx_region_init_for_subresource(struct nv04_region* rgn, struct pipe_resource*
rgn->x = x;
rgn->y = y;
- if(pt->flags & NVFX_RESOURCE_FLAG_LINEAR)
+ if(pt->flags & NOUVEAU_RESOURCE_FLAG_LINEAR)
{
rgn->pitch = nvfx_subresource_pitch(pt, level);
rgn->z = 0;
@@ -438,7 +438,7 @@ nvfx_surface_create_temp(struct pipe_context* pipe, struct pipe_surface* surf)
template.height0 = surf->height;
template.depth0 = 1;
template.nr_samples = surf->texture->nr_samples;
- template.flags = NVFX_RESOURCE_FLAG_LINEAR;
+ template.flags = NOUVEAU_RESOURCE_FLAG_LINEAR;
assert(!ns->temp && !util_dirty_surface_is_dirty(&ns->base));