summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/r600d.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-02-18 05:51:58 +0000
committerDave Airlie <airlied@redhat.com>2011-02-23 11:10:22 +1000
commit60b212f8ddcdbbfa8595f40300756b9ea8dd387e (patch)
treeedc2c884496fba7a187c2b896cb909f867ea08d0 /drivers/gpu/drm/radeon/r600d.h
parent82ef594efb16d1747c55dc449a8eeb38ea97ef80 (diff)
downloadblackbird-op-linux-60b212f8ddcdbbfa8595f40300756b9ea8dd387e.tar.gz
blackbird-op-linux-60b212f8ddcdbbfa8595f40300756b9ea8dd387e.zip
drm/radeon: overhaul texture checking. (v3)
the texture checking code didn't work for block formats like s3tc, this overhauls it to work for all types. v2: add texture array support. v3: add subsampled formats Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600d.h')
-rw-r--r--drivers/gpu/drm/radeon/r600d.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/r600d.h b/drivers/gpu/drm/radeon/r600d.h
index a5d898b4bad2..d1f598663da7 100644
--- a/drivers/gpu/drm/radeon/r600d.h
+++ b/drivers/gpu/drm/radeon/r600d.h
@@ -1303,6 +1303,11 @@
#define V_038004_FMT_16_16_16_FLOAT 0x0000002E
#define V_038004_FMT_32_32_32 0x0000002F
#define V_038004_FMT_32_32_32_FLOAT 0x00000030
+#define V_038004_FMT_BC1 0x00000031
+#define V_038004_FMT_BC2 0x00000032
+#define V_038004_FMT_BC3 0x00000033
+#define V_038004_FMT_BC4 0x00000034
+#define V_038004_FMT_BC5 0x00000035
#define R_038010_SQ_TEX_RESOURCE_WORD4_0 0x038010
#define S_038010_FORMAT_COMP_X(x) (((x) & 0x3) << 0)
#define G_038010_FORMAT_COMP_X(x) (((x) >> 0) & 0x3)
OpenPOWER on IntegriCloud