diff options
author | Dave Airlie <airlied@redhat.com> | 2011-02-18 00:51:58 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-02-22 20:10:22 -0500 |
commit | 60b212f8ddcdbbfa8595f40300756b9ea8dd387e (patch) | |
tree | edc2c884496fba7a187c2b896cb909f867ea08d0 /drivers/gpu/drm/radeon/r600d.h | |
parent | 82ef594efb16d1747c55dc449a8eeb38ea97ef80 (diff) |
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.h | 5 |
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 @@ | |||
1303 | #define V_038004_FMT_16_16_16_FLOAT 0x0000002E | 1303 | #define V_038004_FMT_16_16_16_FLOAT 0x0000002E |
1304 | #define V_038004_FMT_32_32_32 0x0000002F | 1304 | #define V_038004_FMT_32_32_32 0x0000002F |
1305 | #define V_038004_FMT_32_32_32_FLOAT 0x00000030 | 1305 | #define V_038004_FMT_32_32_32_FLOAT 0x00000030 |
1306 | #define V_038004_FMT_BC1 0x00000031 | ||
1307 | #define V_038004_FMT_BC2 0x00000032 | ||
1308 | #define V_038004_FMT_BC3 0x00000033 | ||
1309 | #define V_038004_FMT_BC4 0x00000034 | ||
1310 | #define V_038004_FMT_BC5 0x00000035 | ||
1306 | #define R_038010_SQ_TEX_RESOURCE_WORD4_0 0x038010 | 1311 | #define R_038010_SQ_TEX_RESOURCE_WORD4_0 0x038010 |
1307 | #define S_038010_FORMAT_COMP_X(x) (((x) & 0x3) << 0) | 1312 | #define S_038010_FORMAT_COMP_X(x) (((x) & 0x3) << 0) |
1308 | #define G_038010_FORMAT_COMP_X(x) (((x) >> 0) & 0x3) | 1313 | #define G_038010_FORMAT_COMP_X(x) (((x) >> 0) & 0x3) |