summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600_resource.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-02-14 13:34:11 +1000
committerDave Airlie <airlied@redhat.com>2011-02-15 14:44:08 +1000
commitea7a548d07ddc69c226a425af0f88f818203d6ee (patch)
tree8670b6ef61877dcf270312e409244af90a2a0522 /src/gallium/drivers/r600/r600_resource.h
parentfdb4373a2083ccd0363737fade295b0bedaf9f50 (diff)
r600g: drop tiled flag
we can work this out from the array_mode and it makes more sense to do that. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/drivers/r600/r600_resource.h')
-rw-r--r--src/gallium/drivers/r600/r600_resource.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_resource.h b/src/gallium/drivers/r600/r600_resource.h
index 2e7a28cc94..a6d2141e5f 100644
--- a/src/gallium/drivers/r600/r600_resource.h
+++ b/src/gallium/drivers/r600/r600_resource.h
@@ -59,7 +59,6 @@ struct r600_resource_texture {
unsigned array_mode[PIPE_MAX_TEXTURE_LEVELS];
unsigned pitch_override;
unsigned size;
- unsigned tiled;
unsigned tile_type;
unsigned depth;
unsigned dirty_db;
@@ -67,6 +66,8 @@ struct r600_resource_texture {
boolean is_flushing_texture;
};
+#define R600_TEX_IS_TILED(tex, level) ((tex)->array_mode[level] != V_038000_ARRAY_LINEAR_GENERAL && (tex)->array_mode[level] != V_038000_ARRAY_LINEAR_ALIGNED)
+
#define R600_BUFFER_MAGIC 0xabcd1600
/* XXX this could be removed */